예제 #1
0
        public void TestGetEventWithDefaultParamters()
        {
            var sdk    = new AmbrosusSdk(new AmbrosusSettings());
            var events = sdk.GetEvents(new EventOptions());

            Assert.IsTrue(events.ResultCount > 1);
            Assert.IsTrue(events.Results.Count > 1);
        }
예제 #2
0
 public void TestGetEventWithInvalidParamters()
 {
     var sdk = new AmbrosusSdk(new AmbrosusSettings());
     var eve = sdk.GetEvents(new EventOptions
     {
         CreatedBy = "0x32423",
         PerPage   = 5,
         AssetId   = "0x3432423",
     });
 }
예제 #3
0
        public void TestGetEventWithSpecificParamters()
        {
            var assetId = "0x525466324f178cef08e25cf69cffde9f149129e4ceddfaa19767bc29705cef56";
            var sdk     = new AmbrosusSdk(new AmbrosusSettings());
            var events  = sdk.GetEvents(new EventOptions
            {
                PerPage = 5,
                AssetId = assetId
            });

            Assert.IsTrue(events.Results.Count == 5);
            foreach (var eventsResult in events.Results)
            {
                Assert.IsTrue(eventsResult.Content.IdData.AssetId == assetId);
            }
        }