private void ViewCustomer(long number) { _model.Button = "View"; _model.Number = number; _cv = _r.Get<CustomerCRUDServiceBuilder>().GetInstance(_model, number - 1); _r.Get<IUnitOfWork>().Perform(_cv.Process); }
public void WhenITryToCreateANewCustomerWithNumberNameAddressAndMobile(long number, string name, string address, string mobile) { ForEveryScenario.AtEndExecute(DeleteCustomer); _customerNumberToBeDeleted = number; _model.Button = "Add"; _model.Number = number; _model.Name = name; _model.Address = address; _model.Mobile = mobile; _cv = _r.Get<CustomerCRUDServiceBuilder>().GetInstance(_model, number - 1); _r.Get<IUnitOfWork>().Perform(_cv.Process); }