コード例 #1
0
        public static Dictionary <String, Object> getResponseNames(String dataSetName)
        {
            Dictionary <String, Object> reqObj = new Dictionary <String, Object>();

            if (dataSetName.Equals("Adobe Corporate Entity Records"))
            {
                GetAdobeCorporateEntityResponse GetAdobeCorporateEntityResponse1 = new GetAdobeCorporateEntityResponse();
                GetAdobeCorporateEntityResponse1.AdobeCorporateEntity = "ADUS";
                reqObj.Add("Response1", GetAdobeCorporateEntityResponse1);
                GetAdobeCorporateEntityResponse GetAdobeCorporateEntityResponse2 = new GetAdobeCorporateEntityResponse();
                GetAdobeCorporateEntityResponse2.AdobeCorporateEntity = "ADIR";
                reqObj.Add("Response2", GetAdobeCorporateEntityResponse2);
            }
            else if (dataSetName.Equals("Adobe Contract Class Records"))
            {
                GetAgreementContractClassResponse getAgreementContractClassResponse1 = new GetAgreementContractClassResponse();
                getAgreementContractClassResponse1.ContractClass = "RG";
                reqObj.Add("Response1", getAgreementContractClassResponse1);

                GetAgreementContractClassResponse getAgreementContractClassResponse2 = new GetAgreementContractClassResponse();
                getAgreementContractClassResponse2.ContractClass = "NRG";
                reqObj.Add("Response2", getAgreementContractClassResponse2);
            }
            return(reqObj);
        }
コード例 #2
0
        public static IEnumerable AutoAssertion(String DataSetName)
        {
            if (DataSetName.Equals("Adobe Corporate Entity Records"))
            {
                GetAdobeCorporateEntityRequest GetAdobeCorporateEntityRequest1 = new GetAdobeCorporateEntityRequest();
                GetAdobeCorporateEntityRequest1.AccountCountry            = "US";
                GetAdobeCorporateEntityRequest1.AgreementType             = "DMA";
                GetAdobeCorporateEntityRequest1.MarketSegment             = "Commercial";
                GetAdobeCorporateEntityRequest1.isCorporateEntityOverride = true;

                GetAdobeCorporateEntityResponse GetAdobeCorporateEntityResponse1 = new GetAdobeCorporateEntityResponse();
                GetAdobeCorporateEntityResponse1.AdobeCorporateEntity = "ADUS";
                yield return(new TestCaseData(GetAdobeCorporateEntityRequest1).Returns(GetAdobeCorporateEntityResponse1));

                GetAdobeCorporateEntityRequest GetAdobeCorporateEntityRequest2 = new GetAdobeCorporateEntityRequest();
                GetAdobeCorporateEntityRequest2.AccountCountry            = "UK";
                GetAdobeCorporateEntityRequest2.AgreementType             = "DMA";
                GetAdobeCorporateEntityRequest2.MarketSegment             = "Commercial";
                GetAdobeCorporateEntityRequest2.isCorporateEntityOverride = true;

                GetAdobeCorporateEntityResponse GetAdobeCorporateEntityResponse2 = new GetAdobeCorporateEntityResponse();
                GetAdobeCorporateEntityResponse2.AdobeCorporateEntity = "ADIR";
                yield return(new TestCaseData(GetAdobeCorporateEntityRequest2).Returns(GetAdobeCorporateEntityResponse2));
            }
            else if (DataSetName.Equals("Adobe Contract Class Records"))
            {
                GetAgreementContractClassRequest getAgreementContractClassRequest1 = new GetAgreementContractClassRequest();
                getAgreementContractClassRequest1.AgreementType = "DMA";

                GetAgreementContractClassResponse getAgreementContractClassResponse1 = new GetAgreementContractClassResponse();
                getAgreementContractClassResponse1.ContractClass = "RG";
                yield return(new TestCaseData(getAgreementContractClassRequest1).Returns(getAgreementContractClassResponse1));

                GetAgreementContractClassRequest getAgreementContractClassRequest2 = new GetAgreementContractClassRequest();
                getAgreementContractClassRequest2.AgreementType = "NDA";

                GetAgreementContractClassResponse getAgreementContractClassResponse2 = new GetAgreementContractClassResponse();
                getAgreementContractClassResponse2.ContractClass = "NRG";
                yield return(new TestCaseData(getAgreementContractClassRequest2).Returns(getAgreementContractClassResponse2));
            }
        }