Esempio n. 1
0
        public void CollectionPaging_Manual_NullReference()
        {
            AllianceCollection allianceLinks = crest.GetRoot().Query(r => r.Alliances);

            AllianceCollection.Alliance alliance = allianceLinks.Items.SingleOrDefault(f => f.Id == 99000738);
            alliance = null;
            allianceLinks.Query(f => alliance);
        }
Esempio n. 2
0
        public void CollectionPaging_Manual()
        {
            AllianceCollection allianceLinks = crest.GetRoot().Query(r => r.Alliances);

            AllianceCollection.Alliance alliance = allianceLinks.Items.SingleOrDefault(f => f.Id == 99000738);
            while (alliance == null && allianceLinks.Next != null)
            {
                allianceLinks = allianceLinks.Query(f => f.Next);
                alliance      = allianceLinks.Items.SingleOrDefault(f => f.Id == 99000738);
            }
            Debug.WriteLine(allianceLinks.Query(f => alliance).Name);
        }
Esempio n. 3
0
 public async Task Alliances()
 {
     AllianceCollection response = await crest.GetRoot().QueryAsync(r => r.Alliances);
 }
Esempio n. 4
0
        public void GetAlliances_NoErrors()
        {
            AllianceCollection response = crest.GetRoot().Query(r => r.Alliances);

            Console.WriteLine(response);
        }
Esempio n. 5
0
 public void GetAlliances_NoErrors()
 {
     AllianceCollection response = crest.GetRoot().Query(r => r.Alliances);
 }