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