public void BuildingFilter_Base_IsValid() { // Arrange var filter = new BuildingFilter(); // Act var result = filter.IsValid(); // Assert result.Should().BeTrue(); }
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(); }
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(); }