public void Setup()
 {
     this.mock = new Mock<IConnectionInfo>();
     mock.Setup(c => c.Persist).Returns(true);
     mock.Setup(c => c.CustomTypeInfo.CustomMetadataPath).Returns("");
     mock.Setup(c => c.CustomTypeInfo.CustomAssemblyPath).Returns("");
     this.toTest = new ConnectionViewModel(this.mock.Object);
 }
Beispiel #2
0
 public ConnectDialog(ConnectionViewModel model)
 {
     DataContext = model;
     this.model  = model;
     InitializeComponent();
 }
 public ConnectDialog(ConnectionViewModel model)
 {
     DataContext = model;
     this.model = model;
     InitializeComponent();
 }