public ICommand CreateCommand <T>(ICommandStateRepository commandRepository, ICommandableEntity entity) where T : ICommand, new() { var createdCommand = new T() { CommandRepository = commandRepository }; return(createdCommand); }
public RenameProjectCommand(RenameProjectCommandDto dto, ICommandStateRepository repo) { this.CommandRepository = repo; this.CreatedOn = dto.CreatedOn; this.EntityGuid = dto.EntityGuid; this.CommandTypeId = dto.Name + dto.Entity + "Command"; this.Name = "new"; this.OriginalName = "old"; this.ReceivedOn = DateTime.Now; }
private void CopyCommandDtoIntoCommand(CommandDto command, ICommandStateRepository commandRepository, ICommandProcessor processor, ICommand typedCommand, ICommandState state) { ((CommandBase)typedCommand).State = state; typedCommand.CommandRepository = commandRepository; typedCommand.CreatedOn = command.CreatedOn; typedCommand.ReceivedOn = _dateTimeProvider.GetSessionUtcDateTime(); typedCommand.EntityGuid = command.EntityGuid; typedCommand.Guid = command.Guid; typedCommand.ParametersJson = command.ParametersJson; typedCommand.CommandProcessor = processor; }
public EmploymentCommand(ICommandStateRepository repo) : base(repo) { }
public DesignerController(IRoleRepository roleRepository, IEmployeeRepository employeeRepository, ICommandStateRepository commandStateRepository) { _roleRepository = roleRepository; _employeeRepository = employeeRepository; _commandStateRepository = commandStateRepository; }
public ContactCommand(ICommandStateRepository repo) : base(repo) { }
public CompanyCommand(ICommandStateRepository repo) : base(repo) { }
public Commands(ICommandStateRepository commandRepository) { _commandRepository = commandRepository; PostedCommands = new ObservableCollection <ICommand>(); }
public CommandBase(ICommandStateRepository repo, ICommandState state) : this(repo) { this._state = state; }
public CommandBase(ICommandStateRepository repo) : this() { _repository = repo; InitState(); }
public CreateProductCommand(ICommandStateRepository repo) : base(repo) { }
public ProjectCommand(ICommandStateRepository repo) : base(repo) { }
public CommandManager(ICommandStateRepository repo, IDateTimeProvider dateTimeProvider) { _repo = repo; _dateTimeProvider = dateTimeProvider; }