Example #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();
        }
Example #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>();
        }
Example #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>();
        }
Example #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>();
        }
Example #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();
        }