public void FindById_ReturnsNull_ForUnknownId( [NotNull] MillersRepository sut) { // Arrange // Act IMiller actual = sut.FindById(Guid.Empty); // Assert Assert.Null(actual); }
public void FindById_ReturnsMiller_ForKnownId( [NotNull] IMiller expected, [NotNull] MillersRepository sut) { // Arrange sut.Save(expected); // Act IMiller actual = sut.FindById(expected.Id); // Assert Assert.AreEqual(expected, actual); }