Example #1
0
        public void SearchCriteriaBetween()
        {
            // Arrange
            var searchCriteria = new SearchCriteriaBetween(FilterField.Clicks, 1, 5);

            // Act
            var result = searchCriteria.ToString();

            // Assert
            result.ShouldNotBeNull();
            result.ShouldBe("clicks BETWEEN 1 AND 5");
        }
Example #2
0
        public void SearchCriteriaBetween()
        {
            // Arrange
            var searchCriteria = new SearchCriteriaBetween <ContactsFilterField>(ContactsFilterField.FirstName, "Allen", "Bob");

            // Act
            var result = searchCriteria.ToString();

            // Assert
            result.ShouldNotBeNull();
            result.ShouldBe("first_name BETWEEN \"Allen\" AND \"Bob\"");
        }