public void AddTicketTest() { ticket.ProblemTitle = "Cannot debug unit test"; ticket.ProblemDescription = "Having issues using debug within coding window."; ticket.Severity = 1; ticket.Completed = true; ticket.FixDescription = "Make sure the class is public"; ticketRepo.InsertTicket(ticket); }
/// <summary> /// Adds a ticket to the database /// </summary> /// <param name="pT">Title of the problem</param> /// <param name="pD">Description of the problem</param> /// <param name="tS">Severity of the problem</param> /// <param name="tC">Is the problem completed?</param> /// <param name="tFD">The description of the fix</param> public void AddTicket(string pT, string pD, int tS, bool tC, string tFD) { t.ProblemTitle = pT; t.ProblemDescription = pD; t.Severity = tS; t.Completed = tC; t.FixDescription = tFD; //Adds a ticket tR.InsertTicket(t); }