public void IssueTicketTest() { ITicketManager ticketManager = DaoFactory.GetTicketManager(); Ticket ticket = new Ticket(); var _user = new User(); _user.Id = 1; ticket.Subject = "test support"; ticket.Description = "test description"; ticket.SolvedDate = DateTime.Now; ticket.RaisedDate = DateTime.Now; ticket.user = _user; ticketManager.IssueTicket(ticket); }
public bool UpdateSolvedTicket(Ticket entity) { return tManager.UpdateSolvedTicket(entity); }