public async Task <HttpResponseMessage> GetFilterList([FromUri] int skip = 0, [FromUri] int take = 1000)
 {
     return(await GetServiceResponseAsync <IEnumerable <Filter> >(async() =>
     {
         return await _filterLogic.GetFilterList(skip, take);
     }));
 }
示例#2
0
        public async void GetFilterListTests()
        {
            var filters = fixture.CreateMany <DeviceListFilter>(5);

            _deviceListFilterRepositoryMock.Setup(x => x.GetFilterListAsync(It.IsNotNull <int>(), It.IsNotNull <int>(), It.IsAny <bool>())).ReturnsAsync(filters);
            var ret = await _filterLogic.GetFilterList(0, 10);

            Assert.Equal(5, ret.Count());
        }