コード例 #1
0
        public StorageSystem(IWatchRequestUseCase watchRequestUseCase, IAnalyseRequestUseCase analyseRequestUseCase,
                             IEventAggregator eventAggregator)
        {
            var requestEvent = eventAggregator.GetEvent <PubSubEvent <MovementRequestEvent> >();

            requestEvent.Subscribe(OnMovementRequest);
            _addStoreEvent                       = eventAggregator.GetEvent <PubSubEvent <AddStoreEvent> >();
            _addShelfEvent                       = eventAggregator.GetEvent <PubSubEvent <AddShelfEvent> >();
            _addPartEvent                        = eventAggregator.GetEvent <PubSubEvent <AddPartEvent> >();
            _addStoragePointEvent                = eventAggregator.GetEvent <PubSubEvent <AddStoragePointEvent> >();
            _insertPartEvent                     = eventAggregator.GetEvent <PubSubEvent <InsertPartEvent> >();
            _removePartFromShelfEvent            = eventAggregator.GetEvent <PubSubEvent <RemovePartFromShelfEvent> >();
            _removePartFromStoragePointEvent     = eventAggregator.GetEvent <PubSubEvent <RemovePartFromStoragePointEvent> >();
            _addDeliveryPointEvent               = eventAggregator.GetEvent <PubSubEvent <AddDeliveryPointEvent> >();
            _insertPartToDeliveryPointEvent      = eventAggregator.GetEvent <PubSubEvent <InsertPartToDeliveryEvent> >();
            _watchRequestUseCase                 = watchRequestUseCase;
            _analyseRequestUseCase               = analyseRequestUseCase;
            _analyseRequestUseCase.StorageSystem = this;
            _watchRequestUseCase.Execute();
        }
コード例 #2
0
 public AnalyseRequestUseCaseTest()
 {
     _useCase = new AnalyseRequestUseCase();
 }