public RegisterModel(IRegisterCommand registerCommand, ILoadCountryQuery loadCountryQuery, ILoadNationalityQuery loadNationalityQuery, ILoadCitiesQuery loadCitiesQuery) { this.registerCommand = registerCommand; this.loadCountryQuery = loadCountryQuery; this.loadNationalityQuery = loadNationalityQuery; this.loadCitiesQuery = loadCitiesQuery; }
public static void RegisterCommands(this IRegisterCommand registerCommand, IXpandTestAdapter applicationAdapter) { _adapter = applicationAdapter; var dictionary = new Dictionary <Type, string> { { typeof(FillDateTimeValueCommand), FillDateTimeValueCommand.Name }, { typeof(CreatePermissionCommand), CreatePermissionCommand.Name }, { typeof(ChangeUserPasswordCommand), ChangeUserPasswordCommand.Name }, { typeof(NavigateCommand), NavigateCommand.Name }, { typeof(SaveAndCloseCommand), SaveAndCloseCommand.Name }, { typeof(HideCursorCommand), HideCursorCommand.Name }, { typeof(KillFocusCommand), KillFocusCommand.Name }, { typeof(XpandDeleteFileCommand), XpandDeleteFileCommand.Name }, { typeof(KillWindowCommand), KillWindowCommand.Name }, { typeof(XpandProcessRecordCommand), XpandProcessRecordCommand.Name }, { typeof(SqlCommand), SqlCommand.Name }, { typeof(SendKeysCommand), SendKeysCommand.Name }, { typeof(MouseCommand), MouseCommand.Name }, { typeof(UseModelCommand), UseModelCommand.Name }, { typeof(SetEnvironmentVariableCommand), SetEnvironmentVariableCommand.Name }, { typeof(XpandHandleDialogCommand), XpandHandleDialogCommand.Name }, { typeof(XpandFillFormCommand), XpandFillFormCommand.Name }, { typeof(XpandAutoTestCommand), XpandAutoTestCommand.Name }, { typeof(ResizeWindowCommand), ResizeWindowCommand.Name }, { typeof(FocusWindowCommand), FocusWindowCommand.Name }, { typeof(XpandCompareScreenshotCommand), XpandCompareScreenshotCommand.Name }, { typeof(XpandSelectRecordsCommand), XpandSelectRecordsCommand.Name }, { typeof(ScreenCaptureCommand), ScreenCaptureCommand.Name }, { typeof(StopCommand), StopCommand.Name }, }; foreach (var keyValuePair in dictionary) { registerCommand.RegisterCommand(keyValuePair.Value, keyValuePair.Key); } }
public Controller(IExitCommand exitCommand, IHelpCommand helpCommand, ICd cdCommand, IDirCommand dirCommand, IInitCommand initComman, IStatusCommand statusCommand, IListCommand listCommand, IRegisterCommand registerCommand, ILoginCommand logInCommand, IAddCommand addCommand, IRemoveCommand removeCommand, ITestHttp testHttp, ICommitCommand commitCommand) { this.exitCommand = exitCommand; this.helpCommand = helpCommand; this.cdCommand = cdCommand; this.dirCommand = dirCommand; this.initComman = initComman; this.statusCommand = statusCommand; this.listCommand = listCommand; this.registerCommand = registerCommand; this.loginCommand = logInCommand; this.addCommand = addCommand; this.removeCommand = removeCommand; this.testHttp = testHttp; this.commitCommand = commitCommand; }
public static void RegisterCommands(this IRegisterCommand registerCommand, IXpandTestAdapter applicationAdapter) { _adapter = applicationAdapter; var dictionary = new Dictionary <Type, string> { { typeof(XpandCompareScreenshotCommand), XpandCompareScreenshotCommand.Name }, { typeof(XpandCompareFilesCommand), XpandCompareFilesCommand.Name }, { typeof(FillDateTimeValueCommand), FillDateTimeValueCommand.Name }, { typeof(FieldIsVisibleCommand), FieldIsVisibleCommand.Name }, { typeof(DeleteCommand), DeleteCommand.Name }, { typeof(DeleteAllObjectsCommand), DeleteAllObjectsCommand.Name }, { typeof(CreatePermissionCommand), CreatePermissionCommand.Name }, { typeof(CopyTextCommand), CopyTextCommand.Name }, { typeof(CheckClipboardValueCommand), CheckClipboardValueCommand.Name }, { typeof(ChangeUserPasswordCommand), ChangeUserPasswordCommand.Name }, { typeof(XpandExecuteEditorAction), XpandExecuteEditorAction.Name }, { typeof(NavigateCommand), NavigateCommand.Name }, { typeof(SaveAndCloseCommand), SaveAndCloseCommand.Name }, { typeof(HideCursorCommand), HideCursorCommand.Name }, { typeof(KillFocusCommand), KillFocusCommand.Name }, { typeof(XpandDeleteFileCommand), XpandDeleteFileCommand.Name }, { typeof(KillWindowCommand), KillWindowCommand.Name }, { typeof(XpandProcessRecordCommand), XpandProcessRecordCommand.Name }, { typeof(SqlCommand), SqlCommand.Name }, { typeof(SqlDropDatabaseCommand), SqlDropDatabaseCommand.Name }, { typeof(SendKeysCommand), SendKeysCommand.Name }, { typeof(ActivateWindowCommand), ActivateWindowCommand.Name }, { typeof(MinimizeApplicationWindowCommand), MinimizeApplicationWindowCommand.Name }, { typeof(MouseCommand), MouseCommand.Name }, { typeof(LClickCommand), LClickCommand.Name }, { typeof(RClickCommand), RClickCommand.Name }, { typeof(DblClickCommand), DblClickCommand.Name }, { typeof(MouseDragDropCommand), MouseDragDropCommand.Name }, { typeof(UseModelCommand), UseModelCommand.Name }, { typeof(SetEnvironmentVariableCommand), SetEnvironmentVariableCommand.Name }, { typeof(ProcessCommand), ProcessCommand.Name }, { typeof(XpandHandleDialogCommand), XpandHandleDialogCommand.Name }, { typeof(XpandFillFormCommand), XpandFillFormCommand.Name }, { typeof(FocusControlCommand), FocusControlCommand.Name }, { typeof(XpandFillRecordCommand), XpandFillRecordCommand.Name }, { typeof(SaveFileDialogCommand), SaveFileDialogCommand.Name }, { typeof(OpenFileDialogCommand), OpenFileDialogCommand.Name }, { typeof(XpandAutoTestCommand), XpandAutoTestCommand.Name }, { typeof(XpandCheckFieldValuesCommand), XpandCheckFieldValuesCommand.Name }, { typeof(LogOffCommand), LogOffCommand.Name }, { typeof(XpandCheckFileExistsCommand), XpandCheckFileExistsCommand.Name }, { typeof(MoveWindowCommand), MoveWindowCommand.Name }, { typeof(ResizeWindowCommand), ResizeWindowCommand.Name }, { typeof(ScreenCaptureCommand), ScreenCaptureCommand.Name }, { typeof(StopCommand), StopCommand.Name }, { typeof(ToggleNavigationCommand), ToggleNavigationCommand.Name }, }; foreach (var keyValuePair in dictionary) { registerCommand.RegisterCommand(keyValuePair.Value, keyValuePair.Key); } }
public override void RegisterCommands(IRegisterCommand registrator) { base.RegisterCommands(registrator); registrator.RegisterCommands(this); registrator.RegisterCommand(HideScrollBarCommand.Name, typeof(Commands.HideScrollBarCommand)); registrator.RegisterCommand(SetWebMaxWaitTimeOutCommand.Name, typeof(Commands.SetWebMaxWaitTimeOutCommand)); registrator.RegisterCommand(XpandCheckValidationResultCommand.Name, typeof(Commands.XpandCheckValidationResultCommand)); registrator.RegisterCommand(LogonCommand.Name, typeof(Commands.LogonCommand)); }
public AccountController(ApplicationContext db, ILoginQuery loginQuery, IRegisterCommand registerCommand, IForgetPasswordCommand forgetPasswordCommand, IActiveAccountCommand activeAccountCommand, IUpdateProfileCommand updateProfileCommand, IChangePasswordCommand changePasswordCommand, IGetNewPasswordCommand getNewPasswordCommand) { this.db = db; this.loginQuery = loginQuery; this.registerCommand = registerCommand; this.forgetPasswordCommand = forgetPasswordCommand; this.activeAccountCommand = activeAccountCommand; this.updateProfileCommand = updateProfileCommand; this.changePasswordCommand = changePasswordCommand; this.getNewPasswordCommand = getNewPasswordCommand; }
public static void RegisterCommands(this IRegisterCommand registerCommand) { var dictionary = new Dictionary <Type, string> { { typeof(FillDateTimeValueCommand), "FillDateTimeValue" } }; foreach (var keyValuePair in dictionary) { registerCommand.RegisterCommand(keyValuePair.Value, keyValuePair.Key); } }
public IActionResult Register([FromBody] RegisterDto dto , [FromServices] IRegisterCommand command , [FromServices] RegisterValidator validator) { var result = validator.Validate(dto); if (result.IsValid) { ApplicationUser applicationUser = _mapper.Map <ApplicationUser>(dto); _executor.ExecuteCommand(command, applicationUser); return(Ok("Application user created successfully")); } return(UnprocessableEntity(UnprocessableEntityResponse.Message(result.Errors))); }
public override void RegisterCommands(IRegisterCommand registrator) { base.RegisterCommands(registrator); registrator.RegisterCommands(); }
public override void RegisterCommands(IRegisterCommand registrator) { base.RegisterCommands(registrator); registrator.RegisterCommands(this); registrator.RegisterCommand(HideScrollBarCommand.Name, typeof (Commands.HideScrollBarCommand)); }
public override void RegisterCommands(IRegisterCommand registrator){ base.RegisterCommands(registrator); registrator.RegisterCommands(); }
public override void RegisterCommands(IRegisterCommand registrator) { base.RegisterCommands(registrator); registrator.RegisterCommands(this); registrator.RegisterCommand(Xpand.EasyTest.Commands.HideScrollBarCommand.Name, typeof(HideScrollBarCommand)); }