public Handle_Returns
 (
     WebApplicationFactory <Startup> aWebApplicationFactory,
     JsonSerializerOptions aJsonSerializerOptions
 ) : base(aWebApplicationFactory, aJsonSerializerOptions)
 {
     GetCatalogItemsPaginatedRequest = new GetCatalogItemsPaginatedRequest {
         PageIndex = 0, PageSize = 5
     };
 }
예제 #2
0
        public void Be_Valid()
        {
            var getCatalogItemsPaginatedRequest = new GetCatalogItemsPaginatedRequest
            {
                // Set Valid values here
                PageIndex = 2,
                PageSize  = 3
            };

            ValidationResult validationResult = GetCatalogItemsPaginatedRequestValidator.TestValidate(getCatalogItemsPaginatedRequest);

            validationResult.IsValid.Should().BeTrue();
        }