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