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 Core.Domains.Ticket Save(Core.Domains.Ticket entity) { return(tManager.IssueTicket(entity)); }