Пример #1
0
        public ActionResult Index()
        {
            List <Parscel> allParscels = Parscel.GetAll();

            return(View(allParscels));
        }
Пример #2
0
        public ActionResult Create(int length, int width, int height, int weight)
        {
            Parscel myParscel = new Parscel(length, width, height, weight);

            return(RedirectToAction("Index"));
        }
Пример #3
0
        VolumeCalculatedFromThreeLengths_ReturnsProductOfThreeInts_Volume()
        {
            Parscel newParscel = new Parscel(2, 3, 4);

            Assert.AreEqual((24), newParscel.Volume());
        }
Пример #4
0
        public void CalculateCostToShip_ReturnsPriceBasedOnWeightAndVolume_CostToShip()
        {
            Parscel newParscel = new Parscel(3, 4, 1, 44);

            Assert.AreEqual((int SomeCost), returnedResult)
        }
Пример #5
0
        public void ParscelConstructor_MakeNewParscel_Parscel()
        {
            Parscel newParscel = new Parscel(3, 3, 3, 11);

            Assert.AreEqual(typeof(Parscel), newParscel.GetType());
        }