Example #1
0
        public void TestSetUp()
        {
            if (TestContext.Properties.Contains("WitsmlStoreUrl"))
            {
                _validWitsmlUri = TestContext.Properties["WitsmlStoreUrl"].ToString();
            }

            if (TestContext.Properties.Contains("EtpServerUrl"))
            {
                _validEtpUri = TestContext.Properties["EtpServerUrl"].ToString();
            }

            _bootstrapper = new BootstrapperHarness();
            _runtime      = new TestRuntimeService(_bootstrapper.Container);

            _witsmlConnection = new Connection()
            {
                Name     = "Witsml",
                Uri      = _validWitsmlUri,
                Username = "******"
            };

            _etpConnection = new Connection()
            {
                Name     = "Etp",
                Uri      = _validEtpUri,
                Username = "******"
            };

            _witsmlConnectionVm = new ConnectionViewModel(_runtime, ConnectionTypes.Witsml);
            _etpConnectionVm    = new ConnectionViewModel(_runtime, ConnectionTypes.Etp);

            DeletePersistenceFolder();
        }
Example #2
0
        public void TestSetUp()
        {
            _bootstrapper  = new BootstrapperHarness();
            _runtime       = new TestRuntimeService(_bootstrapper.Container);
            _runtime.Shell = new ShellViewModel(_runtime);

            if (TestContext.Properties.Contains("WitsmlStoreUrl"))
            {
                _validWitsmlUri = TestContext.Properties["WitsmlStoreUrl"].ToString();
            }
        }
Example #3
0
 public void TestSetUp()
 {
     _bootstrapper = new BootstrapperHarness();
     _runtime      = new TestRuntimeService(_bootstrapper.Container);
     _viewModel    = new ShellViewModel(_runtime);
 }