Ejemplo n.º 1
0
 public void ThenTheResultShouldBeABudget()
 {
     using (var db = new GoosEntitiesForTest())
     {
         var budget = db.Budgets.FirstOrDefault();
         budget.Should().NotBeNull();
     }
 }
Ejemplo n.º 2
0
 public void BeforeScenario()
 {
     using (var db = new GoosEntitiesForTest())
     {
         var budget = db.Budgets.AsQueryable();
         db.Budgets.RemoveRange(budget);
         db.SaveChanges();
     }
 }
Ejemplo n.º 3
0
        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();
            }
        }