public void TestServer() { RestServer rs = new RestServer(2, "Ben"); bool isFalse = true; if (rs.Equals(null)) { isFalse = false; } Assert.IsTrue(isFalse); }
private void BtnServerAdd_Click(object sender, EventArgs e) { string serverName = ""; int serverID = 0; using (AddServer addServer = new AddServer()) { if (addServer.ShowDialog() == DialogResult.OK) { serverName = addServer.ServerName; serverID = addServer.ServerID; } } newServ = new RestServer(serverID, serverName); lstServers.Items.Add(newServ); }
public void AssignServer(RestServer serv1) { Serv = serv1; }