コード例 #1
0
        public async Task Getitems_should_return_right_data()
        {
            ItemService itemService = new ItemService(_itemRespository, _genreRespository, _artistRespository, _itemMapper, _logger.Object);

            System.Collections.Generic.IEnumerable <ItemResponse> result = await itemService.GetItemsAsync();

            result.ShouldNotBeNull();
        }
コード例 #2
0
        public async Task should_get_data()
        {
            System.Collections.Generic.IEnumerable <Item> result = await _itemRespository.GetAsync();

            result.ShouldNotBeNull();
        }