public ActionResult Index() { List <Parscel> allParscels = Parscel.GetAll(); return(View(allParscels)); }
public ActionResult Create(int length, int width, int height, int weight) { Parscel myParscel = new Parscel(length, width, height, weight); return(RedirectToAction("Index")); }
VolumeCalculatedFromThreeLengths_ReturnsProductOfThreeInts_Volume() { Parscel newParscel = new Parscel(2, 3, 4); Assert.AreEqual((24), newParscel.Volume()); }
public void CalculateCostToShip_ReturnsPriceBasedOnWeightAndVolume_CostToShip() { Parscel newParscel = new Parscel(3, 4, 1, 44); Assert.AreEqual((int SomeCost), returnedResult) }
public void ParscelConstructor_MakeNewParscel_Parscel() { Parscel newParscel = new Parscel(3, 3, 3, 11); Assert.AreEqual(typeof(Parscel), newParscel.GetType()); }