Exemplo n.º 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));
        }
Exemplo n.º 2
0
 private IRewritingManager RewritingManager(out MockRewriteSessionFactory mockFactory)
 {
     mockFactory = new MockRewriteSessionFactory();
     return(new RewritingManager(mockFactory));
 }