public void WhenPageSizeIsNotNullAndLessThanOneThenItIsNotValid()
        {
            var sut = new PagedQueryValidator();

            var result = sut.Validate(new GetEmailAccounts.Query {
                PageSize = 0
            });

            Assert.That(result.IsValid, Is.False);
        }
        public void WhenPageSizeIsNotNullAndGreaterThanOrEqualToOneThenItIsValid()
        {
            var sut = new PagedQueryValidator();

            var result = sut.Validate(new GetEmailAccounts.Query {
                PageSize = 1
            });

            Assert.That(result.IsValid, Is.True);
        }
        public void WhenPageSizeIsNullThenItIsValid()
        {
            var sut = new PagedQueryValidator();

            var result = sut.Validate(new GetEmailAccounts.Query {
                PageSize = null
            });

            Assert.That(result.IsValid, Is.True);
        }