示例#1
0
        public void GetAllTroubleshooterComments()
        {
            TroubleshooterStepCollection troubleshooterSteps = TestSetup.KayakoApiService.Troubleshooter.GetTroubleshooterSteps();

            Assert.IsNotNull(troubleshooterSteps, "No troubleshooter steps were returned");
            Assert.IsNotEmpty(troubleshooterSteps, "No troubleshooter steps were returned");

            TroubleshooterStep troubleshooterStepToGet = troubleshooterSteps[new Random().Next(troubleshooterSteps.Count)];

            TroubleshooterCommentCollection troubleshooterComments = TestSetup.KayakoApiService.Troubleshooter.GetTroubleshooterComments(troubleshooterStepToGet.Id);

            Assert.IsNotNull(troubleshooterComments, "No troubleshooter comments were returned");
            Assert.IsNotEmpty(troubleshooterComments, "No troubleshooter comments were returned");
        }
示例#2
0
        public void GetTroubleshooterStep()
        {
            TroubleshooterStepCollection troubleshooterSteps = TestSetup.KayakoApiService.Troubleshooter.GetTroubleshooterSteps();

            Assert.IsNotNull(troubleshooterSteps, "No troubleshooter steps were returned");
            Assert.IsNotEmpty(troubleshooterSteps, "No troubleshooter steps were returned");

            TroubleshooterStep troubleshooterStepToGet = troubleshooterSteps[new Random().Next(troubleshooterSteps.Count)];

            Trace.WriteLine("GetTroubleshooterStep using troubleshooter step id: " + troubleshooterStepToGet.Id);

            TroubleshooterStep troubleshooterStep = TestSetup.KayakoApiService.Troubleshooter.GetTroubleshooterStep(troubleshooterStepToGet.Id);

            AssertObjectXmlEqual(troubleshooterStep, troubleshooterStepToGet);
        }
		public static TroubleshooterStepRequest FromResponseData(TroubleshooterStep responseData)
		{
			return FromResponseType<TroubleshooterStep, TroubleshooterStepRequest>(responseData);
		}