Пример #1
0
        public void IsSatisfiedBy_WhenCreatedByMatchesValue_ReturnsTrue()
        {
            var createdBy  = _fixture.Create <int>();
            var mockEntity = new Mock <ICreatedAudit>();

            mockEntity.Setup(a => a.CreatedBy).Returns(createdBy);
            var specification = new CreatedBy <ICreatedAudit>(createdBy);
            var satisified    = specification.IsSatisfiedBy(mockEntity.Object);

            Assert.IsTrue(satisified);
        }