public void ASendedBTIsInsertedInRepository() { var bt = SendABt(); BusinessTripRepository businessTripRepo = new BusinessTripRepository(); IEnumerable <BusinessTrip> storedBts = businessTripRepo.GetAllBts(); Assert.IsTrue(storedBts.Any(b => b.ID == bt.ID)); }
public void AllSendedBTAreInsertedInRepository() { for (int i = 0; i < 10; i++) { SendABt(); } BusinessTripRepository businessTripRepo = new BusinessTripRepository(); IEnumerable <BusinessTrip> storedBts = businessTripRepo.GetAllBts(); Assert.AreEqual(10, storedBts.Count()); }