public void IsSatisfiedProcess_WhenModifiedProcessMatchesValue_ReturnsTrue() { var modifiedProcess = _fixture.Create<string>(); var mockEntity = new Mock<IModifiedAudit>(); mockEntity.Setup(a => a.ModifiedProcess).Returns(modifiedProcess); var specification = new ModifiedProcess<IModifiedAudit>(modifiedProcess); var satisified = specification.IsSatisfiedBy(mockEntity.Object); Assert.IsTrue(satisified); }
public void IsSatisfiedProcess_WhenModifiedProcessIsNull_ReturnsFalse(string value) { var modifiedProcess = _fixture.Create<string>(); var mockEntity = new Mock<IModifiedAudit>(); mockEntity.Setup(a => a.ModifiedProcess).Returns(value); var specification = new ModifiedProcess<IModifiedAudit>(modifiedProcess); var satisified = specification.IsSatisfiedBy(mockEntity.Object); Assert.IsFalse(satisified); }