public void TestInitialize() { eventAggregator = Substitute.For<IEventAggregator>(); workNotifier = Substitute.For<IWorkNotifier>(); 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, workNotifier, selection); }
public void TestInitialize() { view = Substitute.For<IJsonMessageView>(); viewModel = new JsonMessageViewModel(); ((IActivate)viewModel).Activate(); }