public void WhenIViewTheCustomer() { _storedCustomer.Should().NotBeNull(); int customerId = _actor.AsksFor(StoredCustomerId.ForName(_storedCustomer.Name)); _actor.AttemptsTo(ViewCustomer.WithId(customerId)); }
public void WhenIUpdateTheCustomerWithANewMobileNumberOf(string newMobileNumber) { _storedCustomer.Should().NotBeNull(); int customerId = _actor.AsksFor(StoredCustomerId.ForName(_storedCustomer.Name)); _actor.AttemptsTo( ViewCustomer.WithId(customerId), SendKeys.To(CustomerMaintenancePage.Mobile, newMobileNumber), Click.On(CustomerMaintenancePage.Save)); }