public async Task WhenValidBatchId_ThenSaveSalesCatalogueResponseReturnsTrue() { string batchId = "7b4cdf10-adfa-4ed6-b2fe-d1543d8b7272"; var salesCatalogueResponse = GetSalesCatalogueResponse(); CancellationToken cancellationToken = CancellationToken.None; bool isSCSResponseAdded = true; string callBackUri = "https://exchange-set-service.com/myCallback?secret=sharedSecret&po=1234"; string correlationId = "a6670458-9bbc-4b52-95a2-d1f50fe9e3ae"; A.CallTo(() => fakeAzureBlobStorageService.StoreSaleCatalogueServiceResponseAsync(A <string> .Ignored, A <string> .Ignored, A <SalesCatalogueProductResponse> .Ignored, A <string> .Ignored, A <string> .Ignored, cancellationToken, A <string> .Ignored)).Returns(true); isSCSResponseAdded = await service.SaveSalesCatalogueStorageDetails(salesCatalogueResponse, batchId, callBackUri, correlationId, fakeExpiryDate); Assert.AreEqual(true, isSCSResponseAdded); }
public virtual async Task <bool> SaveSalesCatalogueStorageDetails(SalesCatalogueProductResponse salesCatalogueResponse, string batchId, string callBackUri, string correlationId, string expiryDate) { return(await azureBlobStorageService.StoreSaleCatalogueServiceResponseAsync(storageConfig.Value.StorageContainerName, batchId, salesCatalogueResponse, callBackUri, correlationId, CancellationToken.None, expiryDate)); }