Exemplo n.º 1
0
        public void TestValidateClassThrowsContractException()
        {
            var sut = new BaseDtoImplementation1
            {
                RequiredStringProperty1 = "arbitrary-value"
            };

            sut.Validate("RequiredStringProperty2");
        }
Exemplo n.º 2
0
        public void TestValidateSinglePropertySucceeds()
        {
            var sut = new BaseDtoImplementation1
            {
                RequiredStringProperty1 = "arbitrary-value"
            };

            sut.Validate("RequiredStringProperty1");
        }