public QueryHandlingFixture() { const string vendor = "vendor"; var handlerModule = new TestHandlerModule(); var queryTypeFromContentTypeResolver = new DefaultRequestTypeResolver( vendor, handlerModule); var options = new DefaultHandlerSettings(handlerModule, queryTypeFromContentTypeResolver); _midFunc = QueryHandlingMiddleware.HandleQueries(options); _messageExecutionSettings = new QueryExecutionSettings(vendor); }
public CommandHandlingFixture() { const string vendor = "vendor"; var handlerModule = new TestHandlerModule(); var commandTypeFromContentTypeResolver = new DefaultRequestTypeResolver( vendor, handlerModule); var options = new DefaultHandlerSettings(handlerModule, commandTypeFromContentTypeResolver); _midFunc = CommandHandlingMiddleware.HandleCommands(options); _messageExecutionSettings = new CommandExecutionSettings(vendor); }
public CommandHandlingFixture() { const string vendor = "vendor"; var handlerModule = new TestHandlerModule(); var commandTypeFromContentTypeResolver = new DefaultContentTypeMapper( vendor, new[] { typeof (TestCommand), typeof (TestCommandWithoutHandler), typeof (TestCommandWhoseHandlerThrows) }); var options = new DefaultHandlerSettings(handlerModule, commandTypeFromContentTypeResolver); _midFunc = CommandHandlingMiddleware.HandleCommands(options); _messageExecutionSettings = new CommandExecutionSettings(vendor); }
public QueryHandlingFixture() { const string vendor = "vendor"; var handlerModule = new TestHandlerModule(); var queryTypeFromContentTypeResolver = new DefaultContentTypeMapper( vendor, new[] { typeof (TestQuery), typeof (TestQueryWithoutHandler), typeof (TestQueryWhoseHandlerThrows), typeof(TestQueryResponse) }); var options = new DefaultHandlerSettings(handlerModule, queryTypeFromContentTypeResolver); _midFunc = QueryHandlingMiddleware.HandleQueries(options); _messageExecutionSettings = new QueryExecutionSettings(vendor); }