public void Initialize()
        {
            DBFactory dbFactory = new DBFactory();

            connection      = Effort.DbConnectionFactory.CreateTransient();
            databaseContext = new TestHeatChartContext(connection);
        }
示例#2
0
 public void Seed(TestHeatChartContext Context)
 {
     //var listCountry = new List<Country>() {
     // new Country() { Id = 1, Name = "US" },
     // new Country() { Id = 2, Name = "India" },
     // new Country() { Id = 3, Name = "Russia" }
     //};
     //Context.Countries.AddRange(listCountry);
     //Context.SaveChanges();
 }