public void When_AllLecturersRunsAgainstNonEmptyDatabase_Then_AllLecturersAreReturned() { // Arrange var service = new LecturersService(mockQueryAllLecturers); // Act var allLecturers = service.All(); // Assert allLecturers.Count().Should().Be(8); }
public void When_AllLecturersRunsAgainstEmptyDatabase_Then_EmptyCollectionIsReturned() { // Arrange var service = new LecturersService(new GetAllLecturersQuery(TestDatabaseFactory.CreateEmptyDatabase())); // Act var allLecturers = service.All(); // Assert allLecturers.Should().BeEmpty(); }