Пример #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));
        }
Пример #2
0
 private IRewritingManager RewritingManager(out MockRewriteSessionFactory mockFactory)
 {
     mockFactory = new MockRewriteSessionFactory();
     return(new RewritingManager(mockFactory));
 }