private UpdateScriptHashCodeService BuildServiceToTest()
        {
            var fakeHttpRequestSender = A.Fake <IFakeHttpRequestSender>();

            using var fakeHttpMessageHandler = new FakeHttpMessageHandler(fakeHttpRequestSender);
            var httpClient = new HttpClient(fakeHttpMessageHandler);
            var updateScriptHashCodeClientOptions = new UpdateScriptHashCodeClientOptions();

            return(new UpdateScriptHashCodeService(fakeLogger, httpClient, updateScriptHashCodeClientOptions, fakeDocumentService));
        }
Пример #2
0
 public UpdateScriptHashCodeService(
     ILogger <UpdateScriptHashCodeService> logger,
     HttpClient httpClient,
     UpdateScriptHashCodeClientOptions updateScriptHashCodeClientOptions,
     IDocumentService <AppRegistrationModel> documentService)
 {
     this.logger     = logger;
     this.httpClient = httpClient;
     this.updateScriptHashCodeClientOptions = updateScriptHashCodeClientOptions;
     this.documentService = documentService;
 }