public void Given_that_one_of_the_values_are_selected_Then_validation_return_no_error()
        {
            //Given
            var target = new Application.Request.Attributes.AtLeastOneDropDownSelected("LinkToGroupId");
            var otherObject = new TestClass { LinkToGroupId = 10 };
            var testContext = new ValidationContext(otherObject, null, null);

            //When
            TestDelegate exceptionResult = () => target.Validate(null, testContext);

            //Then
            Assert.DoesNotThrow(exceptionResult);
        }
        public void Given_that_none_of_the_values_are_selected_Then_validation_return_error()
        {
            //Given
            var target = new Application.Request.Attributes.AtLeastOneDropDownSelected("LinkToSiteId");
            var otherObject = new TestClass { LinkToGroupId = null };
            var testContext = new ValidationContext(otherObject, null, null);

            //When
            TestDelegate exceptionResult = () => target.Validate(null, testContext);           

            //Then
            var ex = Assert.Throws<ValidationException>(exceptionResult);
            Assert.That(ex.Message, Is.EqualTo("At Least One Should Be Selected"));
        }