public void SetUp() { objectProvider = new TestObjectProvider(); cart = objectProvider.EmptyCart(); aBook = objectProvider.ABook(); otherBook = objectProvider.OtherBook(); }
public void Test02CanAddABookInACart() { 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); Cart aCart = application.GetCart(aCartId); Assert.IsFalse(aCart.IsEmpty()); }