public async Task ConfigurationSetReloadServiceReloadCancellationRequestedCancels()
        {
            //Arrange
            var dummyCmsApiClientOptions      = A.Dummy <CmsApiClientOptions>();
            var cancellationToken             = new CancellationToken(true);
            var configurationSetReloadService = new ConfigurationSetReloadService(A.Fake <ILogger <ConfigurationSetReloadService> >(), fakeMapper, fakeConfigurationSetDocumentService, fakeCmsApiService, dummyCmsApiClientOptions, fakeContentTypeMappingService);

            //Act
            await configurationSetReloadService.Reload(cancellationToken).ConfigureAwait(false);

            //Assert
            A.CallTo(() => fakeCmsApiService.GetItemAsync <ConfigurationSetApiDataModel>(A <Uri> .Ignored)).MustNotHaveHappened();
            A.CallTo(() => fakeMapper.Map <ConfigurationSetModel>(A <ConfigurationSetApiDataModel> .Ignored)).MustNotHaveHappened();
            A.CallTo(() => fakeConfigurationSetDocumentService.UpsertAsync(A <ConfigurationSetModel> .Ignored)).MustNotHaveHappened();
        }
        public async Task ConfigurationSetReloadServiceIsMissingContentItems()
        {
            //Arrange
            var dummyCmsApiClientOptions         = A.Dummy <CmsApiClientOptions>();
            var fakeConfigurationSetApiDataModel = A.Dummy <ConfigurationSetApiDataModel>();

            dummyCmsApiClientOptions.BaseAddress = new Uri("https://www.somewhere.com", UriKind.Absolute);

            A.CallTo(() => fakeCmsApiService.GetItemAsync <ConfigurationSetApiDataModel>(A <Uri> .Ignored)).Returns(fakeConfigurationSetApiDataModel);

            var configurationSetReloadService = new ConfigurationSetReloadService(A.Fake <ILogger <ConfigurationSetReloadService> >(), fakeMapper, fakeConfigurationSetDocumentService, fakeCmsApiService, dummyCmsApiClientOptions, fakeContentTypeMappingService);

            //Act
            await configurationSetReloadService.Reload(CancellationToken.None).ConfigureAwait(false);

            //Assert
            A.CallTo(() => fakeCmsApiService.GetItemAsync <ConfigurationSetApiDataModel>(A <Uri> .Ignored)).MustHaveHappenedOnceExactly();
            A.CallTo(() => fakeMapper.Map <ConfigurationSetModel>(A <ConfigurationSetApiDataModel> .Ignored)).MustNotHaveHappened();
            A.CallTo(() => fakeConfigurationSetDocumentService.UpsertAsync(A <ConfigurationSetModel> .Ignored)).MustNotHaveHappened();
        }