Пример #1
0
        public void BuildingFilter_Base_IsValid()
        {
            // Arrange
            var filter = new BuildingFilter();

            // Act
            var result = filter.IsValid();

            // Assert
            result.Should().BeTrue();
        }
Пример #2
0
        public void BuildingFilter_False()
        {
            // Arrange
            var query  = Microsoft.AspNetCore.WebUtilities.QueryHelpers.ParseQuery("?page=0");
            var filter = new BuildingFilter(query);

            // Act
            var result = filter.IsValid();

            // Assert
            result.Should().BeFalse();
        }
Пример #3
0
        public void BuildingFilter_IsValid()
        {
            // Arrange
            var query  = Microsoft.AspNetCore.WebUtilities.QueryHelpers.ParseQuery("?constructionTypeId=3");
            var filter = new BuildingFilter(query);

            // Act
            var result = filter.IsValid();

            // Assert
            result.Should().BeTrue();
        }