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)); }
public void ReturnsExpectedType() { IExpressionBuilder actual = TestObject.Create(); Assert.IsInstanceOfType(actual, typeof(ExpressionBuilder)); }