public void TestNodeInformation() { var sdk = new AmbrosusSdk(new AmbrosusSettings()); var nodeInfo = sdk.GetNodeInfo(); Assert.IsFalse(string.IsNullOrEmpty(nodeInfo.NodeAddress)); Assert.IsFalse(string.IsNullOrEmpty(nodeInfo.Version)); }
public MainPage() { this.InitializeComponent(); _sdk = new AmbrosusSdk(new AmbrosusSettings { }); var info = _sdk.GetNodeInfo(); var asset = _sdk.CreateAsset(); }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; var sdk = new AmbrosusSdk(new AmbrosusSettings { ApiEndpoint = "https://gateway-test.ambrosus.com", }); var nodeinfo = sdk.GetNodeInfo(); }