我刚开始学习TDD,你能否使用Moq编写测试用例来测试以下代码:
public async Task<Model> GetAssetDeliveryRecordForId(string id)
{
var response = await client.GetAsync($"api/getdata?id={id}");
response.EnsureSuccessStatusCode();
var result = await response.Content.ReadAsAsync<Model>();
return result;
}
感谢您的提前帮助。