예제 #1
0
        public DataModelTests()
        {
            Ef = new EffectFrameworkTestsContext();

            var configuration = new ConfigurationBuilder()
                .AddJsonFile("appsettings.json");
            Ef.Configuration = configuration.Build();

            Configure.PersistenceConnectionString = Ef.Configuration["Data:DefaultConnection:ConnectionString"];

            Ef.PrepareEF7Database();
        }
예제 #2
0
        public StrategyTests()
        {
            ef = new EffectFrameworkTestsContext();

            var Configuration = new ConfigurationBuilder()
                .AddJsonFile("appsettings.json")
                .Build();
            ef.Configuration = Configuration;

            Configure.PersistenceConnectionString = ef.Configuration["Data:DefaultConnection:ConnectionString"];

            ef.PrepareEF7Database();
        }