예제 #1
0
        /// <summary>
        /// Creates the application context for the tests.
        /// </summary>
        protected virtual void CreateApplicationContext()
        {
            var logger = new MultiLogger(LogggersToUse.ToArray());

            ApplicationContext.Setup(new StaticContextStorage(),
                                     logger,
                                     new AdjustableNetworkContext(o => o, new NumericallyIncrementingGuidProvider().SetSeedValue(1000)));
        }
        protected override void SetUpEachTest()
        {
            base.SetUpEachTest();

            MockRepository     = NewMock <IRepository>();
            MockDomainFactory  = NewMock <IDomainFactory>();
            MockQueryFactory   = NewMock <IQueryFactory>();
            MockNetworkContext = NewMock <INetworkContext>();

            var logger = new MultiLogger(LogggersToUse.ToArray());

            ApplicationContext.Setup(new StaticContextStorage(), logger, MockNetworkContext.Object);
            EnableComparisonLogging();

            DomainContext.Setup(MockRepository.Object,
                                MockDomainFactory.Object,
                                MockQueryFactory.Object);
        }