public ActionProcessorFactory(
     IActionLogic actionLogic,
     IActionMappingLogic actionMappingLogic,
     IConfigurationProvider configurationProvider)
 {
     _actionLogic           = actionLogic;
     _actionMappingLogic    = actionMappingLogic;
     _configurationProvider = configurationProvider;
 }
 public ActionEventProcessor(
     ILifetimeScope lifetimeScope,
     IActionLogic actionLogic,
     IActionMappingLogic actionMappingLogic)
 {
     _configurationProvider = lifetimeScope.Resolve<IConfigurationProvider>();
     _actionLogic = actionLogic;
     _actionMappingLogic = actionMappingLogic;
 }
Esempio n. 3
0
 public ActionEventProcessor(
     ILifetimeScope lifetimeScope,
     IActionLogic actionLogic,
     IActionMappingLogic actionMappingLogic)
 {
     _configurationProvider = lifetimeScope.Resolve <IConfigurationProvider>();
     _actionLogic           = actionLogic;
     _actionMappingLogic    = actionMappingLogic;
 }
 public ActionProcessorFactory(
     IActionLogic actionLogic,
     IActionMappingLogic actionMappingLogic,
     IConfigurationProvider configurationProvider)
 {
     _actionLogic = actionLogic;
     _actionMappingLogic = actionMappingLogic;
     _configurationProvider = configurationProvider;
 }
 public ActionProcessor(
     IActionLogic actionLogic,
     IActionMappingLogic actionMappingLogic,
     IConfigurationProvider configurationProvider)
 {
     this.LastMessageOffset = "-1";
     _actionLogic           = actionLogic;
     _actionMappingLogic    = actionMappingLogic;
     _configurationProvider = configurationProvider;
 }
 public ActionProcessor(
     IActionLogic actionLogic,
     IActionMappingLogic actionMappingLogic, 
     IConfigurationProvider configurationProvider)
 {
     this.LastMessageOffset = "-1";
     _actionLogic = actionLogic;
     _actionMappingLogic = actionMappingLogic;
     _configurationProvider = configurationProvider;
 }
Esempio n. 7
0
        public async Task Handle_After_Action_Wrong_State_Should_Return_Bad_Request()
        {
            // Arrange
            int fakeState = -1;

            ChatSession  fakeSession = GetFakeSession((State)fakeState);
            IActionLogic fakeLogic   = null;

            _logicControllerMock.Setup(x => x.GetActionLogic(It.IsAny <State>()))
            .Returns(fakeLogic);

            // Act
            var receiverController = new ReceiverController(
                _logicControllerMock.Object
                );

            var actionResult = (await receiverController.HandleAfterActionAsync(fakeSession)).Result as BadRequestResult;

            // Assert
            Assert.NotNull(actionResult);
        }
Esempio n. 8
0
 public ActionsController(IActionMappingLogic actionMappingLogic, IActionLogic actionLogic)
 {
     _actionMappingLogic = actionMappingLogic;
     _actionLogic        = actionLogic;
 }
 public ActionsController(IActionMappingLogic actionMappingLogic, IActionLogic actionLogic)
 {
     _actionMappingLogic = actionMappingLogic;
     _actionLogic = actionLogic;
 }