public void ShippingCosts_GetAll_Should_Succeed() { IEnumerable <IShippingCostLookupEntry> rates = _serviceClient.GetAll(); Assert.IsNotNull(rates); IShippingCostLookupEntry rate = rates.FirstOrDefault(r => r.Zone == "4" && r.MaxWeight == 2m); Assert.IsTrue(rate.Cost == 3.25m); Assert.IsTrue(rates.Count() == 5); }
public ActionResult CostsTable() { var model = _shippingCostsLookup.GetAll(); return(PartialView("_CostsTable", model)); }