private static MediaServicesManagementClient CreateMediaManagementClientWithFakeHttpMessageHandler(out FakeHttpMessageHandler fakeHttpHandler) { fakeHttpHandler = new FakeHttpMessageHandler(); MediaServicesManagementClient managementClient = InitManagementClient(); MediaServicesManagementClient clientWithHandler = managementClient.WithHandler(fakeHttpHandler); return(clientWithHandler); }
private static MediaServicesManagementClient CreateMediaManagementClientWithFakeHttpMessageHandler(out FakeHttpMessageHandler fakeHttpHandler) { fakeHttpHandler = new FakeHttpMessageHandler(); MediaServicesManagementClient managementClient = InitManagementClient(); MediaServicesManagementClient clientWithHandler = managementClient.WithHandler(fakeHttpHandler); return clientWithHandler; }