public void Test08WhenAClientHasNoPurchasesThenHisListOfPurchasesIsEmpty() { IYourBooksApplication application = objectProvider.YourBooksApplication(); application.RegisterClient("marcos", "123"); Client aClient = objectProvider.AClient(); Assert.IsTrue(application.PurchasesFor(aClient).Item2 == 0);//TODO; ver esta monstruosidad. Asertar lo que corresponda. }
public void Test07WithAnInvalidCreditCard() { try { Sale sale = cashier.CheckoutFor(anInvalidCreditCard, aCartWithOneBook, objectProvider.ACatalog(), objectProvider.AClient(), objectProvider.AnMerchantProcessor()); Assert.Fail(); } catch (ArgumentException e) { Assert.AreEqual("The credit card is expired", e.Message); } }