Ejemplo n.º 1
0
 public Startup(IConfiguration configuration, IWebHostEnvironment environment, ILoggerFactory loggerFactory)
 {
     Configuration = configuration;
     Environment   = environment;
     DbRegistration.Init();
     _logger = loggerFactory.CreateLogger <Startup>();
 }
Ejemplo n.º 2
0
 public Mongo2GoFixture()
 {
     DbRegistration.Init();
     _runner     = RUN_WITH_STANDARD_PORT ? MongoDbRunner.StartForDebugging() : MongoDbRunner.Start();
     MongoClient = new MongoClient(_runner.ConnectionString);
 }