public async Task GenerateCsvForAllPublishedProvidersForReleaseDelegatesToPublishingEndPoint() { string specificationId = NewRandomString(); PublishedProviderDataDownload expectedResponse = new PublishedProviderDataDownload(); _publishingApiClient.GenerateCsvForAllPublishedProvidersForRelease(Arg.Is(specificationId)) .Returns(new ApiResponse <PublishedProviderDataDownload>(HttpStatusCode.OK, expectedResponse)); OkObjectResult result = await _publishController.GenerateCsvForAllPublishedProvidersForRelease(specificationId) as OkObjectResult; result? .Value .Should() .BeSameAs(expectedResponse); }