public ChangePasswordScenario(IWindsorContainer container) { _container = container; NewPassword = new Password(NewPasswordAsString); var registerAccountScenario = new RegisterAccountScenario(container); Account = registerAccountScenario.Execute(); OldPassword = registerAccountScenario.PasswordAsString; }
public void RegisterAccount() { _registerAccountScenario = new RegisterAccountScenario(Container); _account = _registerAccountScenario.Execute(); _changePasswordScenario = new ChangePasswordScenario(Container); }
public void RegisterAccount() { RegisterAccountScenario = new RegisterAccountScenario(Container); RegisteredAccount = RegisterAccountScenario.Execute(); }