Esempio n. 1
0
        public void TotalCostAllOutings()
        {
            decimal total = _outingRepo.CombinedCostOfAllOutingsGet();

            Console.WriteLine($"The total cost of all outings is: {total}");
            Console.WriteLine("Please hit any key to continue... ");
            Console.ReadKey();
        }
Esempio n. 2
0
        public void CombineCostAllTest()
        {
            OutingRepo    outingRepo = new OutingRepo();
            OutingContent content    = new OutingContent();

            content.CostForEvent = 100m;

            OutingContent contentOne = new OutingContent();

            contentOne.CostForEvent = 100m;

            outingRepo.AddToList(content);
            outingRepo.AddToList(contentOne);
            decimal expected = 200m;

            decimal actual = outingRepo.CombinedCostOfAllOutingsGet();

            Assert.AreEqual(expected, actual);
        }