public ApkController(IRdwIntegrationServiceAgent rdwIntegrationServiceAgent, IRepository <Onderhoudsopdracht, long> onderhoudsopdrachtRepository, ILogService logger, IOptions <WebAppConfig> settings) { _rdwIntegrationServiceAgent = rdwIntegrationServiceAgent; _onderhoudsopdrachtRepository = onderhoudsopdrachtRepository; _settings = settings; _logger = logger; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='command'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> MakeApkRequestAsync(this IRdwIntegrationServiceAgent operations, ApkKeuringsVerzoekCommand command = default(ApkKeuringsVerzoekCommand), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.MakeApkRequestWithHttpMessagesAsync(command, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public void Init() { // Use InMemory database for testing, records are not removed afterwards from Local Database //_options = TestDatabaseProvider.CreateInMemoryDatabaseOptions(); _options = TestDatabaseProvider.CreateMsSQLDatabaseOptions(); using (var context = new GarageAdministratieContext(_options, true)) { } _rdwIntegrationServiceAgent = new RdwIntegrationServiceAgentMock(); _rdwIntegrationServiceExceptionAgent = new RdwIntegrationServiceExceptionAgent(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='command'> /// </param> public static object MakeApkRequest(this IRdwIntegrationServiceAgent operations, ApkKeuringsVerzoekCommand command = default(ApkKeuringsVerzoekCommand)) { return(Task.Factory.StartNew(s => ((IRdwIntegrationServiceAgent)s).MakeApkRequestAsync(command), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }