public void ReturnsSecondPageOfStoresForCompanyWithId2_GivenStoresByCompanyPaginatedSpec()
        {
            int take = 10;           // pagesize 10
            int skip = (2 - 1) * 10; // page 2

            var spec = new StoresByCompanyPaginatedSpec(2, skip, take);

            var stores = spec.Evaluate(StoreSeed.Get());

            stores.Count().Should().Be(take);
            stores.OrderBy(x => x.Id).First().Id.Should().Be(61);
            stores.OrderBy(x => x.Id).Last().Id.Should().Be(70);
        }
        public async Task ReturnsSecondPageOfStoresForCompanyWithId2_GivenStoresByCompanyPaginatedSpec()
        {
            int take = 10;           // pagesize 10
            int skip = (2 - 1) * 10; // page 2

            var spec = new StoresByCompanyPaginatedSpec(2, skip, take);

            var stores = await storeRepository.ListAsync(spec);

            stores.Count.Should().Be(take);
            stores.OrderBy(x => x.Id).First().Id.Should().Be(61);
            stores.OrderBy(x => x.Id).Last().Id.Should().Be(70);
        }