Пример #1
0
        public ICloneDefinition <TEntity> Create <TEntity>(ICloneFactory cloneFactory)
            where TEntity : class
        {
            IExpressionBuilder      expressionBuilder = ExpressionBuilderFactory.Create();
            CloneDelegate <TEntity> cloneDelegate     = AssembleExpression <TEntity>(expressionBuilder);

            return(new CloneDefinition <TEntity>(cloneFactory, cloneDelegate));
        }
Пример #2
0
        public void ReturnsExpectedType()
        {
            IExpressionBuilder actual = TestObject.Create();

            Assert.IsInstanceOfType(actual, typeof(ExpressionBuilder));
        }