예제 #1
0
 private void CreateDatabases()
 {
     TestContext testContext = new TestContext();
     testContext.Database.EnsureCreated();
 }
예제 #2
0
 public void Add(int valueToAdd)
 {
     TestContext testContext = new TestContext();
     testContext.Additions.Add(new Addition { Id = Guid.NewGuid(), Value = valueToAdd });
     testContext.SaveChanges();
 }