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)); }
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; }
public TestStreamProvider(TestKitOptions options) =>
public StorageManager(TestKitOptions options) { _options = options ?? throw new ArgumentNullException(nameof(options)); stateAttributeFactoryMapper = new TestPersistentStateAttributeToFactoryMapper(this); }
public StorageManager(TestKitOptions options) =>