public void TestValidateClassThrowsContractException() { var sut = new BaseDtoImplementation1 { RequiredStringProperty1 = "arbitrary-value" }; sut.Validate("RequiredStringProperty2"); }
public void TestValidateSinglePropertySucceeds() { var sut = new BaseDtoImplementation1 { RequiredStringProperty1 = "arbitrary-value" }; sut.Validate("RequiredStringProperty1"); }