Beispiel #1
0
        public ApiFactBase()
        {
            DatabaseHelper.ResetDatabase();

            m_httpConfiguration = new HttpConfiguration();
            var bootstrap = new Bootstrap();
            bootstrap.Initialize(m_httpConfiguration);
            m_httpServer = new HttpServer(m_httpConfiguration);
            Fixtures = new Fixtures(bootstrap.CreateLifetimeScope());
        }
Beispiel #2
0
 public ApiFactBase(ITestOutputHelper outputHelper)
 {
     DatabaseHelper.ResetDatabase();
     //
     m_outputRedirector = new OutputRedirector(outputHelper);
     //
     m_httpConfiguration = new HttpConfiguration();
     var bootstrap = new Bootstrap();
     bootstrap.Initialize(m_httpConfiguration);
     m_httpServer = new HttpServer(m_httpConfiguration);
     Fixtures = new Fixtures(bootstrap.CreateLifetimeScope());
 }
Beispiel #3
0
        public FactBase(ITestOutputHelper outputHelper)
        {
            var containerBuilder = new ContainerBuilder();
            containerBuilder.RegisterModule(new PosAppModule());
            m_container = containerBuilder.Build();
            m_testScope = m_container.BeginLifetimeScope();

            DatabaseHelper.ResetDatabase();
            m_outputRedirector = new OutputRedirector(outputHelper);

            Fixtures = new Fixtures(m_container.BeginLifetimeScope());
        }