/// <summary>
 /// Initializes a new instance of the <see cref="RemoveScenarioCommandHandler"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="eventBus">The event bus.</param>
 public RemoveScenarioCommandHandler(IProcedureRepository repository, IEventBus eventBus)
 {
     _repository = repository;
     _eventBus   = eventBus;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateScenarioCommandHandler"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="eventBus">The event bus.</param>
 public CreateScenarioCommandHandler(IProcedureRepository repository, IEventBus eventBus)
 {
     this._repository = repository ?? throw new ArgumentNullException(nameof(repository));
     this._eventBus   = eventBus ?? throw  new ArgumentNullException(nameof(eventBus));
 }
Exemple #3
0
 public ProcedureController(IProcedureRepository repository)
 {
     _repository = repository;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoveAssetFromScenarioCommandHandler"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="eventBus">The event bus.</param>
 public RemoveAssetFromScenarioCommandHandler(IProcedureRepository repository, IEventBus eventBus)
 {
     this._repository = repository;
     _eventBus        = eventBus;
 }
Exemple #5
0
 public ProcedureService(IProcedureRepository procedureRepository)
 {
     _procedureRepository = procedureRepository;
 }
Exemple #6
0
 public FacilityresourcesController(IProcedureRepository procedureRepository, ILogger logger)
 {
     this.procedureRepository = procedureRepository;
     this.logger = logger;
 }
 public ProcedureController(IProcedureRepository procedureRepository)
 {
     _procedureRepository = procedureRepository;
 }
Exemple #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RemoveProcedureCommandHandler" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="eventBus">The event bus.</param>
 public RemoveProcedureCommandHandler(IProcedureRepository repository, IEventBus eventBus)
 {
     this._repository = repository;
     this._eventBus   = eventBus;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AddScenarioAssetCommandHandler"/> class.
 /// </summary>
 /// <param name="repository">The schema repository.</param>
 /// <param name="eventBus">The event bus.</param>
 public AddScenarioAssetCommandHandler(IProcedureRepository repository, IEventBus eventBus)
 {
     _repository = repository;
     _eventBus   = eventBus;
 }