Esempio n. 1
0
        public static Dictionary <String, Object> getRequestNames(String dataSetName)
        {
            Dictionary <String, Object> reqObj = new Dictionary <String, Object>();

            if (dataSetName.Equals("Adobe Corporate Entity Records"))
            {
                GetAdobeCorporateEntityRequest GetAdobeCorporateEntityRequest1 = new GetAdobeCorporateEntityRequest();
                GetAdobeCorporateEntityRequest1.AccountCountry            = "US";
                GetAdobeCorporateEntityRequest1.AgreementType             = "DMA";
                GetAdobeCorporateEntityRequest1.MarketSegment             = "Commercial";
                GetAdobeCorporateEntityRequest1.isCorporateEntityOverride = true;
                reqObj.Add("Request11", GetAdobeCorporateEntityRequest1);

                GetAdobeCorporateEntityRequest GetAdobeCorporateEntityRequest2 = new GetAdobeCorporateEntityRequest();
                GetAdobeCorporateEntityRequest2.AccountCountry            = "UK";
                GetAdobeCorporateEntityRequest2.AgreementType             = "DMA";
                GetAdobeCorporateEntityRequest2.MarketSegment             = "Commercial";
                GetAdobeCorporateEntityRequest2.isCorporateEntityOverride = true;
                reqObj.Add("Request21", GetAdobeCorporateEntityRequest2);
            }
            else if (dataSetName.Equals("Adobe Contract Class Records"))
            {
                GetAgreementContractClassRequest getAgreementContractClassRequest1 = new GetAgreementContractClassRequest();
                getAgreementContractClassRequest1.AgreementType = "DMA";
                reqObj.Add("Request11", getAgreementContractClassRequest1);

                GetAgreementContractClassRequest getAgreementContractClassRequest2 = new GetAgreementContractClassRequest();
                getAgreementContractClassRequest2.AgreementType = "NDA";
                reqObj.Add("Request21", getAgreementContractClassRequest2);
            }
            return(reqObj);
        }
        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));
            }
        }