Beispiel #1
0
        public static void RequirementGetRequirementsTest()
        {
            var client = new RequirementClient();
            var resultGetRequirements = client.GetRequirements(siteId, userName, password,
                                                               @"<LeadForceRequest>
    <Requirement>
        <Params>
            <RequirementID value=""0e824578-3366-46af-8b22-3a9881c93297""/>
        </Params>
    </Requirement>
</LeadForceRequest>");

//@"<LeadForceRequest>
//    <Requirement>
//        <Params>
//            <ResponsibleID value=""bff90d07-648c-44ba-9a36-46629e9b2280""/>
//            <Status value=""К оплате""/>
//            <CompanyID value=""55924efb-220e-4250-9442-9534d99d2016"" />
//            <RequirementType value=""Тип 2"" />
//        </Params>
//    </Requirement>
//</LeadForceRequest>"

            Console.WriteLine(resultGetRequirements);
        }
Beispiel #2
0
        public static void RequirementUpdateRequirementTest()
        {
            var client = new RequirementClient();
            var resultUpdateRequirement = client.UpdateRequirement(siteId, userName, password,
                                                                   @"<LeadForceRequest><Requirement RequirementID=""0FC3200B-4A74-4D6A-8556-4B78EAD7837E"" CreatedAt=""2012-03-16T15:51:56.837"" Number=""2012/3"">
    <Status>К оплате</Status>
    <Responsible>Шевченко Денис</Responsible>
    <RealizationDatePlanned>2012-03-16T15:51:56.837</RealizationDatePlanned>
    <ShortDescription>Тестирование нотификации 2222</ShortDescription>
    <Source>
      <RequestType>Источник обращение 1</RequestType>
      <Company>Компания</Company>
      <Contact>Белик Алексей Викторович</Contact>
      <ProductSeriesNumber />
    </Source>
    <Classification>
      <RequirementType>Тип 2</RequirementType>
      <ServiceLevel>Уровень обслуживания 3</ServiceLevel>
    </Classification>
    <ClientReview>
      <Comment />
    </ClientReview>
    <EstimateForClient>
      <AnyProductName />
      <Quantity>0.0000</Quantity>
      <Rate>1.0000</Rate>
      <CurrencyPrice>0.0000</CurrencyPrice>
      <CurrencyAmount>0.0000</CurrencyAmount>
      <Price>0.0000</Price>
      <Amount>0.0000</Amount>
    </EstimateForClient>
    <InternalEstimate>
      <Quantity>0.0000</Quantity>
    </InternalEstimate>
    <Comments>
      <Comment CommentID=""A4B72323-92A7-4C92-A146-D114089AC4F5"" UserID=""2FE30B02-2DCC-4A45-8AD6-DE356B27A1C1"" IsOfficialAnswer=""1"">
        <Text>aaaaaaaaaaaaaffffff</Text>
      </Comment>
      <Comment CommentID=""CCB72324-92A7-4C92-A146-D114089AC4F5"" UserID=""2FE30B02-2DCC-4A45-8AD6-DE356B27A1C1"" IsOfficialAnswer=""0"">
        <Text>bbbbbfffff</Text>
      </Comment>
      <Comment CommentID=""f8d53358-47c0-4b53-8232-26e7c368e82d"">
        <Text>www</Text>
      </Comment>      
    </Comments>    
  </Requirement>
</LeadForceRequest>");

            Console.WriteLine(resultUpdateRequirement);
        }