public TicketDialogViewModel(Ticket ticket, ICloseCommand closeCommand, IStatusListProvider statusListProvider, ITechnicianListProvider technicianListProvider, ITicketNoteListViewModelFactory noteListViewModelFactory, ISaveTicketCommand saveTicketCommand, string header) { this.ticket = ticket; CloseCommand = closeCommand; SaveCommand = saveTicketCommand; Statuses = statusListProvider.GetStatuses(); Technicians = technicianListProvider.GetTechnicians(); Header = header; Notes = noteListViewModelFactory.Create(ticket.Id); }
ITicketDialogViewModel CreateViewModel(Ticket model, ICloseCommand closeCommand, ISaveTicketCommand saveTicketCommand) { return(viewModelFactory.Create(model, closeCommand, saveTicketCommand, Strings.TicketDetails.AddHeaderText)); }