public void WhenBothPropertiesAreNotNull()
        {
            var myClass = new MyClass(unitOfWork){Prop1 = "fddf",Prop2 = "dfdfg"};
            Validator.RuleSet.Validate(myClass,ContextIdentifier.Save);
            ValidationState state = Validator.RuleSet.ValidateTarget(myClass,ContextIdentifier.Save).State;

            Assert.AreEqual(ValidationState.Valid, state);
        }
 public void WhenSecondPropertiesIsNull()
 {
     var myClass = new MyClass(unitOfWork) {Prop1 = "ffff"};
     Validator.RuleSet.Validate(myClass,ContextIdentifier.Save);
 }
 public void WhenBothPropertiesAreNull()
 {
     var myClass = new MyClass(unitOfWork);
     Validator.RuleSet.Validate(myClass,ContextIdentifier.Save);
 }