Beispiel #1
0
 public void CheckIfCustomerHasTooManyDebts_LisaLarssonHasNoDebt_False()
 {
     using (var context = new TravelAgencyContext())
     {
         var customer  = context.Customers.First(x => x.Name == "Lisa Larsson");
         var registrer = new Registrerer(customer.CustomerId, 1);
         var actual    = registrer.CheckIfCustomerHasTooManyDebts();
         var expected  = false;
         Assert.AreEqual(expected, actual);
     }
 }
Beispiel #2
0
 public void CheckIfCustomerHasTooManyDebts_LeeLikesDebtsHasThreeDebts_True()
 {
     using (var context = new TravelAgencyContext())
     {
         var customer  = context.Customers.First(x => x.Name == "Lee Likes Debts");
         var registrer = new Registrerer(customer.CustomerId, 1);
         var actual    = registrer.CheckIfCustomerHasTooManyDebts();
         var expected  = true;
         Assert.AreEqual(expected, actual);
     }
 }