【发布时间】:2014-07-25 13:35:31
【问题描述】:
我是为 WebAPI 编写测试用例的新手。我在过去看到过类似的问题,但没有得到回答,但我想知道如果 API 有 ODataQueryOptions 作为参数的一部分,我将如何测试它们。见下文:
public IQueryable<Item> GetByIdAndLocale(ODataQueryOptions opts,
Guid actionuniqueid,
string actionsecondaryid)
我需要最小起订量吗?如果是这样,这看起来如何?任何帮助将不胜感激。
【问题讨论】:
标签: unit-testing asp.net-web-api odata moq