public void BeforeScenario() { using (var db = new GoosEntitiesForTest()) { var budget = db.Budgets.AsQueryable(); db.Budgets.RemoveRange(budget); db.SaveChanges(); } }
public void WhenAddBudgetYearAmount(string year, int amt) { using (var db = new GoosEntitiesForTest()) { var newBudget = new Budgets() { Amount = amt, YearMonth = year }; db.Budgets.Add(newBudget); db.SaveChanges(); } }