Ejemplo n.º 1
0
        public void CostAllEvent_Test()
        {
            Outing     outing      = new Outing(Event.Golf, 2, DateTime.Now, 10, 200);
            Outing     outingTwo   = new Outing(Event.Golf, 3, DateTime.Now, 15, 600);
            Outing     outingThree = new Outing(Event.Concert, 10, DateTime.Now, 20, 2000);
            OutingRepo repo        = new OutingRepo();

            repo.AddOuting(outing);
            repo.AddOuting(outingTwo);
            repo.AddOuting(outingThree);
            decimal amount   = repo.CostEvent();
            decimal actual   = amount;
            decimal expected = 2800;

            Assert.AreEqual(actual, expected);
        }