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