예제 #1
0
        public virtual void BeforeEachTest()
        {
            var startup = new TestStartup();

            Server             = TestServer.Create(builder => startup.Configuration(builder));
            MockedApiInstaller = startup.MockedApiInstaller;

            var documentDbBase = new DocumentDbBase(startup.Container.Resolve <IDocumentStore>(), startup.Container.Resolve <SeedService>());

            documentDbBase.Init();
        }
예제 #2
0
        public virtual void BeforeEachTest()
        {
            _container = new WindsorContainer();

            _container.Kernel.ComponentModelBuilder.AddContributor(new SingletonEqualizer());
            _container
                .Install(new AutoMapperInstaller())
                .Install(new ServiceInstaller())
                .Install(new ConfigurationInstaller())
                .Install(new DalInstaller());

            var documentDbBase = new DocumentDbBase(_container.Resolve<IDocumentStore>(), _container.Resolve<SeedService>());
            documentDbBase.Init();

            DatabaseRepository = _container.Resolve<IDatabaseRepository>();
        }
예제 #3
0
        public virtual void BeforeEachTest()
        {
            _container = new WindsorContainer();

            _container.Kernel.ComponentModelBuilder.AddContributor(new SingletonEqualizer());
            _container
            .Install(new AutoMapperInstaller())
            .Install(new ServiceInstaller())
            .Install(new ConfigurationInstaller())
            .Install(new DalInstaller());

            DocumentDbBase = new DocumentDbBase(_container.Resolve <IDocumentStore>(), _container.Resolve <SeedService>());

            DatabaseRepository = _container.Resolve <IDatabaseRepository>();
            BadgeService       = _container.Resolve <IBadgeService>();
        }
예제 #4
0
        public virtual void BeforeEachTest()
        {
            _container = new WindsorContainer();

            _container.Kernel.ComponentModelBuilder.AddContributor(new SingletonEqualizer());
            _container
            .Install(new OAuthInstaller(null))
            .Install(new AutoMapperInstaller())
            .Install(new ConfigurationInstaller())
            .Install(new ServiceInstaller())
            .Install(new DalInstaller());

            var documentDbBase = new DocumentDbBase(_container.Resolve <IDocumentStore>(), _container.Resolve <SeedService>());

            documentDbBase.Init();

            ApplicationUserService = _container.Resolve <IUserService>();
            CacheService           = _container.Resolve <ICacheService>();
        }
예제 #5
0
        public virtual void BeforeEachTest()
        {
            var startup = new TestStartup();
            Server = TestServer.Create(builder => startup.Configuration(builder));
            MockedApiInstaller = startup.MockedApiInstaller;

            var documentDbBase = new DocumentDbBase(startup.Container.Resolve<IDocumentStore>(), startup.Container.Resolve<SeedService>());
            documentDbBase.Init();
        }