public void GetToursForGivenDayOnly() { var sut = new TourSchedule(); sut.CreateTour("Safari", new DateTime(2015, 06, 17), 20); sut.CreateTour("Caribbean", new DateTime(2013, 03, 07), 6); sut.CreateTour("Sightseeing", new DateTime(2016, 10, 25), 12); var result = sut.GetToursFor(new DateTime(2015, 06, 17)); Assert.AreEqual(1, result.Count); }
public void CanCreateNewTour() { sut.CreateTour("Fagerbergs Tour", new DateTime(2016, 9, 8), 40); List <Tour> result = sut.GetToursFor(new DateTime(2016, 9, 8)); Assert.AreEqual(1, result.Count); Assert.AreEqual("Fagerbergs Tour", result[0].Name); Assert.AreEqual(40, result[0].NumberOfSeats); }
public void CanCreateNewTour() { sut.CreateTour("Nutella safari", new DateTime(2017, 06, 12), 10); var tours = sut.GetToursFor(new DateTime(2017, 06, 12)); Assert.AreEqual(1, tours.Count); Assert.AreSame("Nutella safari", tours[0].Name); }
public void CanCreateNewTour() { //var sut = new TourSchedule(); sut.CreateTour("New years day safari", new DateTime(2013, 1, 1), 20); var result = sut.GetToursFor(new DateTime(2013, 1, 1)); Assert.AreEqual("New years day safari", result[0].Name); }
public void CanCreateNewTour() { var sut = new TourSchedule(); sut.CreateTour("Safari", new DateTime(2015, 06, 17), 20); var result = sut.GetToursFor(new DateTime(2015, 06, 17)); Assert.AreEqual(1, result.Count); }
public void ToursAreScheduledByDateOnly() { sut.CreateTour( "New years day safari", new DateTime(2013, 1, 1, 10, 15, 0), 20); var tour = sut.GetToursFor(new DateTime(2013, 1, 1)); Assert.AreEqual("New years day safari", tour[0].Name); }
public void CanCreateNewTour() { sut.CreateTour( "New years eve safari", new DateTime(2013, 1, 1), 20); var tours = sut.GetToursFor(new DateTime(2013, 1, 1)); Assert.AreEqual(1, tours.Count, "Have one booked tour"); Assert.AreEqual(20, tours[0].NumberOfSeats, "Correct number of booked seats"); Assert.AreEqual("New years eve safari", tours[0].Name, "Correct tour name"); }