public virtual void TestInitialize() { ProxyCredentialsFilenameProvider = new GetFilenameProvider(new[] { @"E:\Igor\Third\Credentials.txt", }); AccountCredentialsFilenameProvider = new GetFilenameProvider(new[] { @"..\..\..\Credentials\AccountCredentials.txt", @"..\..\AccountCredentials.txt", @"E:\Igor\Third\AccountCredentials.txt", @"E:\Work\CryptoApisSdkLibrary\Credentials\AccountCredentials.txt" }); ApiKeyFilenameProvider = new GetFilenameProvider(new[] { @"..\..\..\Credentials\ApiKey.txt", @"..\..\ApiKey.txt", @"E:\Igor\Third\ApiKey.txt", @"e:\Work\CryptoApisSdkLibrary\Credentials\ApiKey.txt" }); var apiKey = LoadApiKey(); var credentials = LoadCredentials(); AccountPassword = LoadAccountPassword(); Manager = new CryptoManager(apiKey, credentials); Manager.SetResponseRequestLogger(new ResponseRequestLogger(TestContext)); BeforeTest(); }
private static void Main() { var apiKeyFilenameProvider = new GetFilenameProvider(new[] { @"..\..\..\Credentials\ApiKey.txt", @"..\..\ApiKey.txt", @"E:\Igor\Third\ApiKey.txt", @"e:\Work\CryptoApisSdkLibrary\Credentials\ApiKey.txt" }); var apiKey = LoadApiKey(apiKeyFilenameProvider); RunExchangesFeatures(new ExchangeSnippets(apiKey)); RunBlockchainsFeatures(new BlockchainSnippets(apiKey)); Console.WriteLine(""); Console.WriteLine(""); Console.WriteLine("Press any key"); Console.ReadKey(); }
private static void Main() { var proxyCredentialsFilenameProvider = new GetFilenameProvider(new[] { @"E:\Igor\Third\Credentials.txt", }); var apiKeyFilenameProvider = new GetFilenameProvider(new[] { @"..\..\..\Credentials\ApiKey.txt", @"..\..\ApiKey.txt", @"E:\Igor\Third\ApiKey.txt", @"e:\Work\CryptoApisSdkLibrary\Credentials\ApiKey.txt" }); var apiKey = LoadApiKey(apiKeyFilenameProvider); var credentials = LoadCredentials(proxyCredentialsFilenameProvider); var manager = new CryptoManager(apiKey, credentials); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1(manager)); }