public MessageBodyViewModel( HexContentViewModel hexViewer, JsonMessageViewModel jsonViewer, XmlMessageViewModel xmlViewer) { HexViewer = hexViewer; XmlViewer = xmlViewer; JsonViewer = jsonViewer; }
public void TestInitialize() { EventAggregator = Substitute.For <IEventAggregator>(); ServiceControl = Substitute.For <IServiceControl>(); HexContent = Substitute.For <HexContentViewModel>(); JsonContent = Substitute.For <JsonMessageViewModel>(); XmlContent = Substitute.For <XmlMessageViewModel>(); Selection = new MessageSelectionContext(EventAggregator); MessageBodyFunc = () => new MessageBodyViewModel(HexContent, JsonContent, XmlContent, ServiceControl, EventAggregator, Selection); }
public void TestInitialize() { eventAggregator = Substitute.For <IEventAggregator>(); serviceControl = Substitute.For <IServiceControl>(); hexContent = Substitute.For <HexContentViewModel>(); jsonContent = Substitute.For <JsonMessageViewModel>(); xmlContent = Substitute.For <XmlMessageViewModel>(); selection = new MessageSelectionContext(eventAggregator); messageBodyFunc = () => new MessageBodyViewModel(hexContent, jsonContent, xmlContent, serviceControl, eventAggregator, selection); }
public MessageBodyViewModel( HexContentViewModel hexViewer, JsonMessageViewModel jsonViewer, XmlMessageViewModel xmlViewer, IServiceControl serviceControl, IEventAggregator eventAggregator, MessageSelectionContext selectionContext) { this.serviceControl = serviceControl; this.eventAggregator = eventAggregator; this.selection = selectionContext; HexViewer = hexViewer; XmlViewer = xmlViewer; JsonViewer = jsonViewer; }
public MessageBodyViewModel( HexContentViewModel hexViewer, JsonMessageViewModel jsonViewer, XmlMessageViewModel xmlViewer, IServiceControl serviceControl, IWorkNotifier workNotifier, MessageSelectionContext selectionContext) { this.serviceControl = serviceControl; this.workNotifier = workNotifier; selection = selectionContext; HexViewer = hexViewer; XmlViewer = xmlViewer; JsonViewer = jsonViewer; }
public void TestInitialize() { View = Substitute.For<IXmlMessageView>(); ViewModel = new XmlMessageViewModel(); ((IActivate)ViewModel).Activate(); }
public void TestInitialize() { view = Substitute.For <IXmlMessageView>(); viewModel = new XmlMessageViewModel(); ((IActivate)viewModel).Activate(); }