public Handle_Returns ( WebApplicationFactory <Startup> aWebApplicationFactory, JsonSerializerOptions aJsonSerializerOptions ) : base(aWebApplicationFactory, aJsonSerializerOptions) { GetCatalogItemsPaginatedRequest = new GetCatalogItemsPaginatedRequest { PageIndex = 0, PageSize = 5 }; }
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(); }