Exemplo n.º 1
0
 public RewritingManager(IRewriteSessionFactory sessionFactory, IMemberAttributeRecovererWithSettableRewritingManager memberAttributeRecoverer)
 {
     _sessionFactory           = sessionFactory;
     _memberAttributeRecoverer = memberAttributeRecoverer;
     _memberAttributeRecoverer.RewritingManager = this;
 }
Exemplo n.º 2
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));
        }