public void CostEvent_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.Type(Event.Golf); decimal actual = amount; decimal expected = 800; Assert.AreEqual(actual, expected); }