public void Test11WhenGetListCartOfAnEmptyCartThenIsEmpty() { IYourBooksApplication application = objectProvider.YourBooksApplication(); application.RegisterClient("marcos", "123"); Client aClient = application.Login("marcos", "123"); Guid aCartId = application.CreateCart(aClient.Id, aClient.Password); Assert.IsTrue(application.ListCart(aCartId).Count == 0); }
public void Test12WhenAddBookToCartAndGetListCartThenIsNotEmpty() { IYourBooksApplication application = objectProvider.YourBooksApplication(); application.RegisterClient("marcos", "123"); Client aClient = application.Login("marcos", "123"); Guid aCartId = application.CreateCart(aClient.Id, aClient.Password); application.AddAQuantityOfAnItem(1, objectProvider.ABook(), aCartId); Assert.IsFalse(application.ListCart(aCartId).Count == 0); }