public void When_AllLectureHallsRunsAgainstNonEmptyDatabase_Then_AllLectureHallsAreReturned() { // Arrange var service = new LectureHallsService(_mockQueryAllLectureHalls); // Act var allLectureHalls = service.All(); // Assert allLectureHalls.Count().Should().Be(8); }
public void When_AllLectureHallsRunsAgainstEmptyDatabase_Then_EmptyCollectionIsReturned() { // Arrange var service = new LectureHallsService(new GetAllLectureHallsQuery(TestDatabaseFactory.CreateEmptyDatabase())); // Act var allLectureHalls = service.All(); // Assert allLectureHalls.Should().BeEmpty(); }