private readonly ShippingSettings shippingSettings;
shippingSettings = EngineContext.Current.Resolve<ShippingSettings>();
Hi well,
You should assign the private field _shippingSettings before returning it. The change is in bold. Also it should not be readonly as you won't be able to assign it.
private ShippingSettings _shippingSettings;
public ShippingSettings ShippingSettings
{
get
{
if (_shippingSettings == null)
{
_shippingSettings = EngineContext.Current.Resolve<ShippingSettings>();
}
return _shippingSettings;
}
}