Beispiel #1
0
 public void TestInitialize()
 {
     XmlDecoder = Substitute.For <IContentDecoder <XmlDocument> >();
     Clipboard  = Substitute.For <IClipboard>();
     View       = Substitute.For <IXmlMessageView>();
     ViewModel  = new XmlMessageViewModel(XmlDecoder, Clipboard);
     ViewModel.Activate();
 }
Beispiel #2
0
 public override void AttachView(object view, object context)
 {
     base.AttachView(view, context);
     _messageView = (IXmlMessageView)view;
     OnSelectedMessageChanged();
 }
 public void TestInitialize()
 {
     View = Substitute.For<IXmlMessageView>();
     ViewModel = new XmlMessageViewModel();
     ((IActivate)ViewModel).Activate();
 }
 protected override void OnViewAttached(object view, object context)
 {
     base.OnViewAttached(view, context);
     messageView = (IXmlMessageView)view;
     OnSelectedMessageChanged();
 }
 protected override void OnViewAttached(object view, object context)
 {
     base.OnViewAttached(view, context);
     messageView = (IXmlMessageView)view;
     OnSelectedMessageChanged();
 }
 public override void AttachView(object view, object context)
 {
     base.AttachView(view, context);
     _messageView = (IXmlMessageView)view;
     OnSelectedMessageChanged();
 }
 public void TestInitialize()
 {
     StringDecoder = Substitute.For<IContentDecoder<string>>();
     XmlDecoder = Substitute.For<IContentDecoder<XmlDocument>>();
     Clipboard = Substitute.For<IClipboard>();
     View = Substitute.For<IXmlMessageView>();
     ViewModel = new XmlMessageViewModel(XmlDecoder, StringDecoder, Clipboard);
     ViewModel.Activate();
 }
 public void TestInitialize()
 {
     view      = Substitute.For <IXmlMessageView>();
     viewModel = new XmlMessageViewModel();
     ((IActivate)viewModel).Activate();
 }