public void Setup() { _client = new WhiteListClient(); string prodEnvUrl = UrlProvider.ProductionUrl; _client.Init(prodEnvUrl); }
public void Setup() { WhiteListClient client = new WhiteListClient(); string prodEnvUrl = UrlProvider.ProductionUrl; client.Init(prodEnvUrl); WhiteListClientFactory.SetClient(client); _verifier = new WhiteListCompanyVerifier(); var config = new NLog.Config.LoggingConfiguration(); var logfile = new NLog.Targets.FileTarget("logfile") { FileName = "file.txt" }; config.AddRule(LogLevel.Info, LogLevel.Fatal, logfile); NLog.LogManager.Configuration = config; Logger = NLog.LogManager.GetCurrentClassLogger(); }