public void AddAllOutings() { //arrange List <Event> list = new List <Event>(); DateTime t1 = new DateTime(2018, 06, 4); DateTime t2 = new DateTime(2018, 06, 5); EventRepository Repo = new EventRepository(); Event type = new Event(EventType.golf, 2, t1, 50); Event type2 = new Event(EventType.golf, 2, t1, 50); Repo.AddEventTypesToList(type); Repo.AddEventTypesToList(type2); Repo.AddAllOutings(); //act int Expected = 200; int Actual = Repo.AddAllOutings(); //assert Assert.AreEqual(Expected, Actual); }