public void WhenSpeakerNotFoundWithId_ThenEmpty() { // Arrange var badSpeakerId = new Guid("A9D08DC2-C529-480A-ABD6-08D9BC3574C8"); var spec = new SpeakerPresentationSpecification(badSpeakerId); // Act var result = spec.Evaluate(GetTestCollection()); // Assert Assert.Empty(result); }
public void WhenSpeakerPresentationFoundWithSpeakerId_ThenSpeakerPresentationReturned() { // Arrange var spec = new SpeakerPresentationSpecification(_speakerId); // Act var result = spec.Evaluate(GetTestCollection()); // Assert Assert.NotNull(result); Assert.Contains(result, x => x.SpeakerId == _speakerId); }