Пример #1
0
        public void AddCostShouldReturnCorrectValue()
        {
            OutingRepo _outingRepo = new OutingRepo();
            OutingInfo outing      = new OutingInfo(OutingType.Golf, 10, "03/01/18", 20.00m, 200.00m);
            OutingInfo outingTwo   = new OutingInfo(OutingType.Golf, 10, "03/01/18", 20.00m, 200.00m);
            OutingInfo outingThree = new OutingInfo(OutingType.Golf, 10, "03/01/18", 20.00m, 200.00m);

            _outingRepo.AddOutingToList(outing);
            _outingRepo.AddOutingToList(outingTwo);
            _outingRepo.AddOutingToList(outingThree);

            decimal actual   = _outingRepo.AddCostofOneType(OutingType.Golf);
            decimal expected = 600m;

            Assert.AreEqual(expected, actual);
        }