Ejemplo n.º 1
0
 public DatabaseService()
 {
     Configuration = new ConfigurationBuilder()
                     .AddJsonFile("connectionStrings.Local.json")
                     .Build();
     WebConfiguration = new TestWebConfiguration
     {
         SqlConnectionString = Configuration.GetConnectionString("SqlConnectionStringTest")
     };
 }
Ejemplo n.º 2
0
        public DatabaseService()
        {
            Configuration = new ConfigurationBuilder()
                            .AddJsonFile("connectionStrings.Local.json")
                            .Build();

            WebConfiguration = new TestWebConfiguration
            {
                SqlConnectionString = Configuration.GetConnectionString("SqlConnectionStringTest")
            };

            DbConnectionHelper = new DbConnectionHelper(WebConfiguration, new TestHostingEnvironment());
        }