Esempio n. 1
0
 private static async Task Persist(TestKitOptions options, List <InApiDto> apis)
 {
     var content    = JsonConvert.SerializeObject(new { options.AppId, Apis = apis });
     var httpClient = new HttpClient()
     {
         BaseAddress = new Uri(options.Host)
     };
     await httpClient.PutAsync(options.Url, new StringContent(content, Encoding.UTF8, ContentTypes.Json));
 }
Esempio n. 2
0
        public TestServiceProvider(TestKitOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            _options  = options;
            _services = new Dictionary <Type, object>();
        }
 public TestStreamProviderManager(TestKitOptions options)
 {
     _options = options;
 }
Esempio n. 4
0
 public TestStreamProvider(TestKitOptions options) =>
Esempio n. 5
0
 public StorageManager(TestKitOptions options)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     stateAttributeFactoryMapper = new TestPersistentStateAttributeToFactoryMapper(this);
 }
Esempio n. 6
0
 public StorageManager(TestKitOptions options) =>