public void Can_Get_SQL_Servers() { var sqlManager = new SqlManager(); var servers = sqlManager.GetServers(); Assert.IsTrue(servers.Contains(Environment.MachineName)); }
private void MainForm_Load(object sender, EventArgs e) { this.Cursor = Cursors.AppStarting; new Thread(() => { var sqlManager = new SqlManager(); foreach (var server in sqlManager.GetServers()) { ServerCombo.SafeThreadAction(x => x.Items.Add(server)); } this.SafeThreadAction(x => x.Cursor = Cursors.Default); }).Start(); }