public UpdatePrisonerViewModel(IEventAggregator eventAggregator, IPrisonerEndpoint prisonerEndpoint, ICellEndpoint cellEndpoint)
 {
     _eventAggregator = eventAggregator;
     _eventAggregator.Subscribe(this);
     _prisonerEndpoint = prisonerEndpoint;
     _cellEndpoint     = cellEndpoint;
 }
Exemple #2
0
 public AddPrisonerViewModel(IEventAggregator eventAggregator, IPrisonerEndpoint prisonerEndpoint, ICellEndpoint cellEndpoint)
 {
     _eventAggregator  = eventAggregator;
     _prisonerEndpoint = prisonerEndpoint;
     _cellEndpoint     = cellEndpoint;
 }
 public PrisonerViewModel(IPrisonerEndpoint prisonerEndpoint, IEventAggregator eventAggregator)
 {
     _prisonerEndpoint = prisonerEndpoint;
     _eventAggregator  = eventAggregator;
     _eventAggregator.Subscribe(this);
 }