public CompleteResponseDTO(string customerId, string responserId, List<ResponseDto> responses, IResponseProvider responseHolder, long responseKey) { _responseHolder = responseHolder; _responses = responses; _responseKey = responseKey; _customerId = customerId; _responserId = responserId; }
public PassengerController(IRouteManager routeManager, ILogProvider logManager, IRouteGroupManager routeGroupManager, INotificationManager notificationManager, IUserManager userManager, IResponseProvider responseProvider) { _routemanager = routeManager; _logmanager = logManager; _routeGroupManager = routeGroupManager; _responseProvider = responseProvider; _userManager = userManager; _notificationManager = notificationManager; }
public ControllerBase( IRepository <TModel> repository, ILogger <TController> logger, IConverter converter, IStringLocalizer <SharedResources> localizer, IResponseProvider response ) { _repository = repository; _logger = logger; _converter = converter; _localizer = localizer; _response = response; }
public Switch(string[] opts, StringComparer comparer, Dictionary <Type, utility.Switch.InstanceCreator> creators, IResponseProvider response_provider) { this.creators = creators; int length = opts == null ? 0 : opts.Length; this.args = new string[length]; if (opts != null) { Array.Copy(opts, args, length); } this.namespaces = new Dictionary <int, Dictionary <string, NamedArgument> >(); this.positioned = new List <PositionedArgument>(); this.AllArgument = new List <Input>(); this.ResponseProvider = response_provider == null ? new DefaultResponseProvider() : response_provider; var expr = new System.Text.RegularExpressions.Regex(regexpr, System.Text.RegularExpressions.RegexOptions.IgnoreCase); int absolute = 0; //to index count foreach (string arg in GetIndividualArguments(args)) { Match match = expr.Match(arg); Group swit = match.Groups["switch"]; Group name = match.Groups["name"]; Input entry; if (swit.Success && name.Success) { int namespace_id = swit.Length; if (!this.namespaces.ContainsKey(namespace_id)) { this.namespaces[namespace_id] = new Dictionary <string, NamedArgument>(comparer); } var named = this.namespaces[namespace_id]; named[name.Value] = new NamedArgument(name, match.Groups["turn"], match.Groups["value"]) { AbsoluteIndex = absolute }; entry = named[name.Value]; } else { entry = new PositionedArgument() { Value = arg, AbsoluteIndex = absolute }; this.positioned.Add(entry as PositionedArgument); } this.AllArgument.Add(entry); ++absolute; } }
/// <summary> /// Initializes a new instance of the <see cref="Mapping"/> class. /// </summary> /// <param name="guid">The unique identifier.</param> /// <param name="title">The unique title (can be null).</param> /// <param name="path">The full file path from this mapping title (can be null).</param> /// <param name="fileSystemHandler">The fileSystemHandler.</param> /// <param name="requestMatcher">The request matcher.</param> /// <param name="provider">The provider.</param> /// <param name="priority">The priority for this mapping.</param> /// <param name="scenario">The scenario. [Optional]</param> /// <param name="executionConditionState">State in which the current mapping can occur. [Optional]</param> /// <param name="nextState">The next state which will occur after the current mapping execution. [Optional]</param> public Mapping(Guid guid, [CanBeNull] string title, [CanBeNull] string path, [NotNull] IFileSystemHandler fileSystemHandler, [NotNull] IRequestMatcher requestMatcher, [NotNull] IResponseProvider provider, int priority, [CanBeNull] string scenario, [CanBeNull] string executionConditionState, [CanBeNull] string nextState) { Guid = guid; Title = title; Path = path; FileSystemHandler = fileSystemHandler; RequestMatcher = requestMatcher; Provider = provider; Priority = priority; Scenario = scenario; ExecutionConditionState = executionConditionState; NextState = nextState; }
public FanapController(IRouteManager routeManager, ILogProvider logManager, IUserManager userManager, IRouteGroupManager routeGroupManager, IFanapManager fanapManager, IResponseProvider responseProvider) { _routemanager = routeManager; _routemanager = routeManager; _logmanager = logManager; _userManager = userManager; _fanapManager = fanapManager; _routeGroupManager = routeGroupManager; _responseProvider = responseProvider; }
public WebServerConsole(IResponseProvider responseProvider, IConsoleInputOutputProvider inputOutputProvider) { if (responseProvider == null) { throw new ArgumentNullException(nameof(responseProvider)); } if (inputOutputProvider == null) { throw new ArgumentNullException(nameof(inputOutputProvider)); } this._responseProvider = responseProvider; this._inputOutputProvider = inputOutputProvider; }
/// <summary> /// Initializes a new instance of the <see cref="Mapping"/> class. /// </summary> /// <param name="guid">The unique identifier.</param> /// <param name="title">The unique title (can be null).</param> /// <param name="path">The full file path from this mapping title (can be null).</param> /// <param name="settings">The FluentMockServerSettings.</param> /// <param name="requestMatcher">The request matcher.</param> /// <param name="provider">The provider.</param> /// <param name="priority">The priority for this mapping.</param> /// <param name="scenario">The scenario. [Optional]</param> /// <param name="executionConditionState">State in which the current mapping can occur. [Optional]</param> /// <param name="nextState">The next state which will occur after the current mapping execution. [Optional]</param> public Mapping(Guid guid, [CanBeNull] string title, [CanBeNull] string path, [NotNull] IFluentMockServerSettings settings, [NotNull] IRequestMatcher requestMatcher, [NotNull] IResponseProvider provider, int priority, [CanBeNull] string scenario, [CanBeNull] string executionConditionState, [CanBeNull] string nextState) { Guid = guid; Title = title; Path = path; Settings = settings; RequestMatcher = requestMatcher; Provider = provider; Priority = priority; Scenario = scenario; ExecutionConditionState = executionConditionState; NextState = nextState; }
public BaseParams( Func <fiosEntities> db, IDataCheck dataCheck, IResponseProvider responseProvider, IRelationshipsService relationshipsService, IGenericService genericService, IUiService uiService) { _getDb = db; DataCheck = dataCheck; ResponseProvider = responseProvider; RelationshipsService = relationshipsService; GenericService = genericService; UiService = uiService; }
public AdminManager(IRouteGroupManager routeGroupManager, ITimingService timingService, IPricingManager pricingManager, IResponseProvider responseProvider, INotificationManager notifManager, ITransactionManager transactionManager, ILogProvider logmanager) { //_timingService = new TimingStrategy.TimingStrategy(); _routeGroupManager = routeGroupManager; _timingService = timingService; _pricingManager = pricingManager; _responseProvider = responseProvider; _logmanager = logmanager; _notifManager = notifManager; _transactionManager = transactionManager; _gService = new GoogleService(); }
public WebServerBase(IResponseProvider responseProvider, T inputOutputProvider) { this.responseProvider = responseProvider; this.inputOutputProvider = inputOutputProvider; }
/// <summary> /// Initializes a new instance of the <see cref="Mapping"/> class. /// </summary> /// <param name="guid">The unique identifier.</param> /// <param name="title">The unique title (can be null_.</param> /// <param name="requestMatcher">The request matcher.</param> /// <param name="provider">The provider.</param> /// <param name="priority">The priority for this mapping.</param> public Mapping(Guid guid, [CanBeNull] string title, IRequestMatcher requestMatcher, IResponseProvider provider, int priority) { Priority = priority; Guid = guid; Title = title; RequestMatcher = requestMatcher; Provider = provider; }
/// <summary> /// Initializes a new instance of the <see cref="WebServerConsole"/> class. /// </summary> /// <param name="responseProvider"> /// The response Provider. /// </param> public WebServerConsole(IResponseProvider responseProvider) { this.responseProvider = responseProvider; }
public ConsoleWebServer(IResponseProvider responseProvider, IConsoleInputOutputProvider inputOutputProvider) : base(responseProvider, inputOutputProvider) { }
/// <summary> /// Initializes a new instance of the <see cref="Mapping"/> class. /// </summary> /// <param name="guid">The unique identifier.</param> /// <param name="title">The unique title (can be null_.</param> /// <param name="requestMatcher">The request matcher.</param> /// <param name="provider">The provider.</param> /// <param name="priority">The priority for this mapping.</param> /// <param name="scenario">The scenario. [Optional]</param> /// <param name="executionConditionState">State in which the current mapping can occur. [Optional]</param> /// <param name="nextState">The next state which will occur after the current mapping execution. [Optional]</param> public Mapping(Guid guid, [CanBeNull] string title, IRequestMatcher requestMatcher, IResponseProvider provider, int priority, [CanBeNull] string scenario, [CanBeNull] object executionConditionState, [CanBeNull] object nextState) { Guid = guid; Title = title; RequestMatcher = requestMatcher; Provider = provider; Priority = priority; Scenario = scenario; ExecutionConditionState = executionConditionState; NextState = nextState; }
/// <summary> /// The respond with. /// </summary> /// <param name="provider">The provider.</param> public void RespondWith(IResponseProvider provider) { _registrationCallback(new Mapping(Guid, _title, _path, _requestMatcher, provider, _priority, _scenario, _executionConditionState, _nextState)); }
public static IResponseProvider AsVerifiable(this IResponseProvider _this, string alias = null) { return(new CustomResponseProvider(_this, alias)); }
public void SetupRequest(IRequestMatcher requestMatcher, IResponseProvider responseProvider) { Server .Given(requestMatcher) .RespondWith(responseProvider); }
public WebServer(IInputOutputProvider inputOutputProvider, IResponseProvider responseProvider) { this.inputOutputProvider = inputOutputProvider; this.responseProvider = responseProvider; }
/// <summary> /// The respond with. /// </summary> /// <param name="provider">The provider.</param> public void RespondWith(IResponseProvider provider) { var mappingGuid = _guid ?? Guid.NewGuid(); _registrationCallback(new Mapping(mappingGuid, _title, _path, _requestMatcher, provider, _priority, _scenario, _executionConditionState, _nextState, _logOnMatchFail)); }
public WebServerConsole() { this.responseProvider = new ResponseProvider(); }
public HomeController(IResponseProvider provider) { _provider = provider; }
public Switch(string[] opts, IResponseProvider response_provider) : this(opts, StringComparer.CurrentCultureIgnoreCase, null, response_provider) { }
public CustomResponseProvider(IResponseProvider provider, string group = null) { Group = group; _provider = provider; }
/// <summary> /// The respond with. /// </summary> /// <param name="provider">The provider.</param> public void RespondWith(IResponseProvider provider) { _registrationCallback(new Mapping(Guid, _title, _path, _settings, _requestMatcher, provider, _priority, _scenario, _executionConditionState, _nextState, _timesInSameState, Webhooks, TimeSettings), _saveToFile); }
public HateoasHttpHandler(IResponseProvider responseProvider, IList <IMessageSerializer> messageSerializers) { _responseProvider = responseProvider; _messageSerializers = messageSerializers; }
/// <summary> /// Initializes a new instance of the <see cref="Mapping"/> class. /// </summary> /// <param name="guid">The unique identifier.</param> /// <param name="title">The unique title (can be null).</param> /// <param name="path">The full file path from this mapping title (can be null).</param> /// <param name="requestMatcher">The request matcher.</param> /// <param name="provider">The provider.</param> /// <param name="priority">The priority for this mapping.</param> /// <param name="scenario">The scenario. [Optional]</param> /// <param name="executionConditionState">State in which the current mapping can occur. [Optional]</param> /// <param name="nextState">The next state which will occur after the current mapping execution. [Optional]</param> /// <param name="logOnMatchFail">Should this log when match on this mapping fails? [Optional - Default: false]</param> public Mapping(Guid guid, [CanBeNull] string title, [CanBeNull] string path, IRequestMatcher requestMatcher, IResponseProvider provider, int priority, [CanBeNull] string scenario, [CanBeNull] object executionConditionState, [CanBeNull] object nextState, bool logOnMatchFail = false) { Guid = guid; Title = title; Path = path; RequestMatcher = requestMatcher; Provider = provider; Priority = priority; Scenario = scenario; ExecutionConditionState = executionConditionState; NextState = nextState; LogOnMatchFailure = logOnMatchFail; }
public RestHandler(IRestController <T> controller, IResponseProvider responseProvider) { _controller = controller; _responseProvider = responseProvider; }
public WebServerConsole(IResponseProvider responseProvider) { this.responseProvider = responseProvider; }
/// <summary> /// The respond with. /// </summary> /// <param name="provider"> /// The provider. /// </param> public void RespondWith(IResponseProvider provider) { var mappingGuid = _guid ?? Guid.NewGuid(); _registrationCallback(new Mapping(mappingGuid, _title, _requestMatcher, provider, _priority)); }
public GroupManager(IResponseProvider responseProvider, ITimingService timingService, INotificationManager notifManager) { _responseProvider = responseProvider; _timingService = timingService; _notifManager = notifManager; }
public RouteGroupManager(ITimingService timingService, IPricingManager pricingManager, IResponseProvider responseProvider) { _timingService = timingService; _pricingManager = pricingManager; _responseProvider = responseProvider; }