Esempio n. 1
0
        public async Task _10CatalogItems_Given_PageSize_10_Requested()
        {
            GetCatalogItemsPaginatedResponse getCatalogItemsPaginatedResponse =
                await HttpClient.GetFromJsonAsync <GetCatalogItemsPaginatedResponse>(GetCatalogItemsPaginatedRequest.GetRoute());

            ValidateGetCatalogItemsPaginatedResponse(getCatalogItemsPaginatedResponse);
        }
 private void ValidateGetCatalogItemsPaginatedResponse(GetCatalogItemsPaginatedResponse aGetCatalogItemsPaginatedResponse)
 {
     aGetCatalogItemsPaginatedResponse.CorrelationId.Should().Be(GetCatalogItemsPaginatedRequest.CorrelationId);
     aGetCatalogItemsPaginatedResponse.CatalogItems.Count.Should().Be(GetCatalogItemsPaginatedRequest.PageSize);
     aGetCatalogItemsPaginatedResponse.PageCount.Should().Be(3); // 12 items seeded
 }
        public async Task _5CatalogItems_Given_PageSize_5_Requested()
        {
            GetCatalogItemsPaginatedResponse getCatalogItemsPaginatedResponse = await Send(GetCatalogItemsPaginatedRequest);

            ValidateGetCatalogItemsPaginatedResponse(getCatalogItemsPaginatedResponse);
        }
Esempio n. 4
0
 private void ValidateGetCatalogItemsPaginatedResponse(GetCatalogItemsPaginatedResponse aGetCatalogItemsPaginatedResponse)
 {
     aGetCatalogItemsPaginatedResponse.CorrelationId.Should().Be(GetCatalogItemsPaginatedRequest.CorrelationId);
     aGetCatalogItemsPaginatedResponse.CatalogItems.Count.Should().Be(GetCatalogItemsPaginatedRequest.PageSize);
     // check Other properties here
 }