public override void Login(ProviderModel provider) { Log.Trace($"Login {provider.Provider}"); base.Login(provider); Contract.Requires(provider != null); _api = new FxcmClient(provider.Access, provider.ApiKey); _api.Login(); }
public void Initialize() { Log.LogHandler = new ConsoleLogHandler(); string access = ConfigurationManager.AppSettings["fxcmrest-access"]; AccessType accessType = (AccessType)Enum.Parse(typeof(AccessType), access); string key = ConfigurationManager.AppSettings["fxcmrest-key"]; _api = new FxcmClient(accessType, key); }
public void Initialize() { Log.LogHandler = new ConsoleLogHandler(); IConfigurationRoot config = TestConfig.Create(); string access = config["fxcmrest-access"]; AccessType accessType = (AccessType)Enum.Parse(typeof(AccessType), access); string key = config["fxcmrest-key"]; _api = new FxcmClient(accessType, key); }