Following is the piece of code(simple HTTP post call), I am trying to mock in Azure Function:

await httpClient.PostAsync("https://url.com", await File.ReadAllTextAsync,c#,unit-testing,mocking,moq,xunit"/>
	














首页 > 解决方案 > c# xUnit Moq It.IsAny not mocking as expected

Following is the piece of code(simple HTTP post call), I am trying to mock in Azure Function:

await httpClient.PostAsync("https://url.com", await File.ReadAllTextAsync