Exemplo n.º 1
0
        public ActionResult Index()
        {
            List <Parscel> allParscels = Parscel.GetAll();

            return(View(allParscels));
        }
Exemplo n.º 2
0
        public ActionResult Create(int length, int width, int height, int weight)
        {
            Parscel myParscel = new Parscel(length, width, height, weight);

            return(RedirectToAction("Index"));
        }
Exemplo n.º 3
0
        VolumeCalculatedFromThreeLengths_ReturnsProductOfThreeInts_Volume()
        {
            Parscel newParscel = new Parscel(2, 3, 4);

            Assert.AreEqual((24), newParscel.Volume());
        }
Exemplo n.º 4
0
        public void CalculateCostToShip_ReturnsPriceBasedOnWeightAndVolume_CostToShip()
        {
            Parscel newParscel = new Parscel(3, 4, 1, 44);

            Assert.AreEqual((int SomeCost), returnedResult)
        }
Exemplo n.º 5
0
        public void ParscelConstructor_MakeNewParscel_Parscel()
        {
            Parscel newParscel = new Parscel(3, 3, 3, 11);

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