public void Setup() { EnvironmentHelper.SetTestEnvironmentVariable(); var settings = new AlphaSettings { HorizonUrl = "https://horizon-testnet.stellar.org", NetworkPassphrase = "Test SDF Network ; September 2015", CWD = "AppData" }; Global.Setup(settings, new MockStorage()).Wait(); account1 = new Models.Account() { Id = 1, Pubkey = new RawPubKey() { Data = KeyPair.Random().PublicKey }, Balances = new List <Balance>() }; account1.CreateBalance(0); account1.GetBalance(0).UpdateBalance(10000000000); account1.CreateBalance(1); account1.GetBalance(1).UpdateBalance(10000000000); account2 = new Models.Account() { Id = 2, Pubkey = new RawPubKey() { Data = KeyPair.Random().PublicKey }, Balances = new List <Balance>() }; account2.CreateBalance(0); account2.GetBalance(0).UpdateBalance(10000000000); account2.CreateBalance(1); account2.GetBalance(1).UpdateBalance(10000000000); Global.Setup(new Snapshot { Accounts = new List <Models.Account> { account1, account2 }, Apex = 0, TxCursor = 1, Orders = new List <Order>(), Settings = new ConstellationSettings { Vault = KeyPair.Random().PublicKey, Assets = new List <AssetSettings> { new AssetSettings { Id = 1, Code = "X", Issuer = new RawPubKey() } }, RequestRateLimits = new RequestRateLimits { HourLimit = 1000, MinuteLimit = 100 } }, }).Wait(); }