Пример #1
0
        public void CostByType()
        {
            //arrange
            _repo.Seed();
            Outing GolfDay   = new Outing(EventType.Golf, 20, new DateTime(2019, 08, 14), 20d, 400d);
            Outing GolfNight = new Outing(EventType.Golf, 10, new DateTime(2019, 08, 15), 20d, 200d);

            //act
            _repo.AddNewOuting(GolfDay);
            _repo.AddNewOuting(GolfNight);
            double golfTotal = _repo.CostByType(EventType.Golf);

            //assert
            Assert.AreEqual(600d, golfTotal);
        }