public void TestGetAssetWithEmptyParamaters() { var sdk = new AmbrosusSdk(new AmbrosusSettings()); var assets = sdk.GetAssets(new AssetOptions { }); Assert.IsTrue(assets.ResultCount > 1); Assert.IsTrue(assets.Results.Count > 1); }
public void TestGetAssetWithInvalidParamaters() { var createdBy = "0x9687a70518"; var sdk = new AmbrosusSdk(new AmbrosusSettings()); var assets = sdk.GetAssets(new AssetOptions { PerPage = 10, CreatedBy = createdBy }); }
public void TestGetAssetWithParamaters() { var createdBy = "0x9687a70513047dc6Ee966D69bD0C07FFb1102098"; var sdk = new AmbrosusSdk(new AmbrosusSettings()); var assets = sdk.GetAssets(new AssetOptions { PerPage = 10, CreatedBy = createdBy }); Assert.IsTrue(assets.Results.Count == 10); foreach (var assetsResult in assets.Results) { Assert.IsTrue(assetsResult.Content.IdData.CreatedBy == createdBy); } }