Example #1
0
        private IRewritingManager RewritingManager(out MockRewriteSessionFactory mockFactory, IMemberAttributeRecovererWithSettableRewritingManager memberAttributeRecoverer = null)
        {
            var recoverer = memberAttributeRecoverer ?? new Mock <IMemberAttributeRecovererWithSettableRewritingManager>().Object;

            mockFactory = new MockRewriteSessionFactory();
            return(new RewritingManager(mockFactory, recoverer));
        }
Example #2
0
 private IRewritingManager RewritingManager(out MockRewriteSessionFactory mockFactory)
 {
     mockFactory = new MockRewriteSessionFactory();
     return(new RewritingManager(mockFactory));
 }