AMEEClient.Tests.DefraFixture.CanGetTransportDefraPassenger C# (CSharp) Method

CanGetTransportDefraPassenger() private method

private CanGetTransportDefraPassenger ( ) : void
return void
        public void CanGetTransportDefraPassenger()
        {
            var client = new Client(new Uri(AmeeUrl), AmeeUserName, AmeePassword);

            // path is pretty robust, leading and trailing whacks and blanks will be trimmed
            string path = "/transport/defra/passenger / ";
            DrillDownResponse r = client.GetDrillDown(path);
            Assert.AreEqual("type", r.Choices.Name);
            var choice = r.Choices.Choices.FirstOrDefault(c => c.Name == "taxi");
            Assert.IsNotNull(choice);

            r = client.GetDrillDown(path, new ValueItem("type", "taxi"));
            Assert.AreEqual("subtype", r.Choices.Name);
            choice = r.Choices.Choices.FirstOrDefault(c => c.Name == "regular");
            Assert.IsNotNull(choice);

            r = client.GetDrillDown(path, new ValueItem("type", "taxi"), new ValueItem("subtype", "regular"));

            Assert.AreEqual(1, r.Choices.Choices.Count);
            Assert.AreEqual("uid", r.Choices.Name);

            choice = r.Choices.Choices.First();
            var item = client.GetDataItem(path, choice.Name);
        }