public void ShippingCostMustBePositiveAndNonZero() { var strategy = new WorldWideShippingStrategy(12); strategy.CalculateShippingCost(1f, ValidDimensions, RegionInfo.CurrentRegion) .Should().BeGreaterThan(0m); }
public void ShippingDomesticallyIsFree() { var strategy = new WorldWideShippingStrategy(12); strategy.CalculateShippingCost(1f, ValidDimensions, RegionInfo.CurrentRegion) .Should().Be(decimal.Zero); }
public void ShippingFlatRateCanBeCHanged() { var strategy = new WorldWideShippingStrategy(12); strategy.FlatRate = decimal.MinusOne; strategy.FlatRate.Should().Be(decimal.MinusOne); strategy.CalculateShippingCost(1f, ValidDimensions, RegionInfo.CurrentRegion) .Should().BeGreaterThan(0m); }
public void WorldWideShippingStrategyTest() { decimal ret = _strategy.CalculateShippingCost(1f, _validDimentions, null); Assert.Equals(ret, decimal.Zero); }