Beispiel #1
0
        public void DoValidateSucceedsForNonEmptyPMT()
        {
            ValidationResults results = new ValidationResults();
            TestCrossServiceContractModelTIandPMTValidator target = new TestCrossServiceContractModelTIandPMTValidator(attributes);

            target.TestDoValidate(reference.ServiceImplementationType, reference, string.Empty, results);

            Assert.IsTrue(results.IsValid);
        }
Beispiel #2
0
        public void DoValidateFailsForEmptyPMT()
        {
            scModel.ProjectMappingTable = string.Empty;
            ValidationResults results = new ValidationResults();
            TestCrossServiceContractModelTIandPMTValidator target = new TestCrossServiceContractModelTIandPMTValidator(attributes);

            target.TestDoValidate(reference.ServiceImplementationType, reference, string.Empty, results);

            Assert.IsFalse(results.IsValid);
        }
        public void DoValidateSucceedsForNonEmptyPMT()
        {
            ValidationResults results = new ValidationResults();
            TestCrossServiceContractModelTIandPMTValidator target = new TestCrossServiceContractModelTIandPMTValidator(attributes);
			target.TestDoValidate(reference.ServiceImplementationType, reference, string.Empty, results);

            Assert.IsTrue(results.IsValid);
        }
        public void DoValidateFailsForEmptyImplementationTechnology()
        {
			scModel.ImplementationTechnology = null;

            ValidationResults results = new ValidationResults();
            TestCrossServiceContractModelTIandPMTValidator target = new TestCrossServiceContractModelTIandPMTValidator(attributes);
			target.TestDoValidate(reference.ServiceImplementationType, reference, string.Empty, results);

            Assert.IsFalse(results.IsValid);
        }