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; }
public ActionEventProcessor( ILifetimeScope lifetimeScope, IActionLogic actionLogic, IActionMappingLogic actionMappingLogic) { _configurationProvider = lifetimeScope.Resolve <IConfigurationProvider>(); _actionLogic = actionLogic; _actionMappingLogic = actionMappingLogic; }
public ActionProcessor( IActionLogic actionLogic, IActionMappingLogic actionMappingLogic, IConfigurationProvider configurationProvider) { this.LastMessageOffset = "-1"; _actionLogic = actionLogic; _actionMappingLogic = actionMappingLogic; _configurationProvider = configurationProvider; }
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); }
public ActionsController(IActionMappingLogic actionMappingLogic, IActionLogic actionLogic) { _actionMappingLogic = actionMappingLogic; _actionLogic = actionLogic; }