コード例 #1
0
        public void TestGetEventById()
        {
            var sdk = new AmbrosusSdk(new AmbrosusSettings());
            var eve = sdk.GetEventById(_eventId);

            Assert.IsTrue(eve.EventId == _eventId);
            foreach (var datum in eve.Content.Data)
            {
                Assert.IsNotNull(datum.AdditionalData);
                foreach (var d in datum.AdditionalData)
                {
                    Assert.IsNotNull(d.Key);
                    Assert.IsNotNull(d.Value);
                }
            }
        }
コード例 #2
0
 public void TestGetEventWithInvalidId()
 {
     var sdk = new AmbrosusSdk(new AmbrosusSettings());
     var eve = sdk.GetEventById("0x34234232");
 }
コード例 #3
0
 public void TestGetEventByWithEmptyId()
 {
     var sdk = new AmbrosusSdk(new AmbrosusSettings());
     var eve = sdk.GetEventById("");
 }