Пример #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());
        }
Пример #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());
 }