public async Task ProfferServicesAsync_WhenServiceProviderIsNull_Throws()
        {
            var exception = await Assert.ThrowsAnyAsync <Exception>(
                async() => await NuGetBrokeredServiceFactory.ProfferServicesAsync(serviceProvider: null));

            ExceptionUtility.AssertMicrosoftAssumesException(exception);
        }
        public void Constructor_WhenStateIsNull_Throws()
        {
            Exception exception = Assert.ThrowsAny <Exception>(
                () => new NuGetSourcesService(
                    default(ServiceActivationOptions),
                    Mock.Of <IServiceBroker>(),
                    new AuthorizationServiceClient(Mock.Of <IAuthorizationService>()),
                    state: null));

            ExceptionUtility.AssertMicrosoftAssumesException(exception);
        }
        public void Constructor_WhenAuthorizationServiceClientIsNull_Throws()
        {
            Exception exception = Assert.ThrowsAny <Exception>(
                () => new NuGetPackageFileService(
                    default(ServiceActivationOptions),
                    Mock.Of <IServiceBroker>(),
                    authorizationServiceClient: null,
                    _telemetryProvider.Object));

            ExceptionUtility.AssertMicrosoftAssumesException(exception);
        }