public void ICanRegisterNewPetsForSale() { GivenThePetshop.IsRunning(); WhenAPetIsRegistered.WithName("Snowdrop") .WithType("Rabbit") .WhoEats("Carnivorous") .WhoHasRules("Dangerous", "No Children") .AtAPrice(100.00) .AndSaved(); ThenTheHistory.ShouldContain(100.00, "Snowdrop", "Rabbit", "Carnivorous"); AndTheHistory.ShouldIncludeMostRecentPet("Snowdrop"); ThenTheBasket.ShouldList("Snowdrop"); }
public void ICanCopyAnExistingPetsDetails() { GivenThePetshop.IsRunning(); WhenAPetIsRegistered.WithName("Fluffy") .ByCopying("Spot") .AndSaved(); ThenTheBasket.ShouldList("Fluffy"); WhenTheBasket.IsAddedWith("Fluffy"); ThenTheBasket.ShouldContain("Fluffy", 100.00); WhenAPetIsRegistered.WithName("Nutmeg") .ByCopying("Fluffy") .AndSaved(); ThenTheBasket.ShouldList("Nutmeg"); }