public static void MyClassInitialize(TestContext testContext) { target = new JupiterViewModel(); target.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(target_PropertyChanged); sw.Start(); target.ReadJupiter(@"..\..\..\..\JupiterTools\TestData\AlbertslundNytFormat.mdb"); }
void WritePermits_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { JVM = DataContext as JupiterViewModel; if (JVM != null) { Distyear.Text = JVM.SelectionEndTime.Year.ToString(); StartYear.Text = JVM.SelectionStartTime.Year.ToString(); EndYear.Text = JVM.SelectionEndTime.Year.ToString(); } }
public void MoveIntakesToChalkTest() { JupiterViewModel jvm = new JupiterViewModel(); jvm.ReadJupiter(@"C:\Users\Jacob\Projekter\MikeSheWrapperForGEUS\MCNordjylland.mdb"); jvm.LoadMikeSheMethod(@"C:\Users\Jacob\Projekter\MikeSheWrapperForGEUS\novomr6\result\Novomr6_inv10.she"); MikeSheViewModel target = jvm.Mshe; target.Layers.Single(var => var.DfsLayerNumber == 0).IsChalkLayer = true; }
public void TestMethod1() { JupiterViewModel JVM = new JupiterViewModel(); //Read the database. This call is asynchrone and will return before finished reading JVM.ReadJupiter(@"..\..\..\..\JupiterTools\TestData\AlbertslundNytFormat.mdb"); //Wait until the database has finished reading. The time depends on the size of the database Thread.Sleep(TimeSpan.FromSeconds(10)); //Only include plants that have extraction in the period JVM.MinYearlyExtraction = 1; JVM.SelectionStartTime = new DateTime(2005, 1, 1); JVM.SelectionEndTime = new DateTime(2005, 12, 31); //Fix the errors that can be automatically fixed. JVM.FixErrors(); //Example of change a property on well JVM.SortedAndFilteredPlants.First().Wells.First().IsUsedForExtraction = true; //Now write the output files MsheInputFileWriters.WriteGMSExtraction(@"..\..\..\..\JupiterTools\TestData", JVM.SortedAndFilteredPlants, JVM.SelectionStartTime, JVM.SelectionEndTime); }
public void TestMethod1() { JupiterViewModel JVM = new JupiterViewModel(); //Read the database. This call is asynchrone and will return before finished reading JVM.ReadJupiter(@"..\..\..\..\JupiterTools\TestData\AlbertslundNytFormat.mdb"); //Wait until the database has finished reading. The time depends on the size of the database Thread.Sleep(TimeSpan.FromSeconds(10)); //Only include plants that have extraction in the period JVM.MinYearlyExtraction = 1; JVM.SelectionStartTime = new DateTime(2005, 1, 1); JVM.SelectionEndTime = new DateTime(2005, 12, 31); //Fix the errors that can be automatically fixed. JVM.FixErrors(); //Example of change a property on well JVM.SortedAndFilteredPlants.First().Wells.First().IsUsedForExtraction = true; //Now write the output files MsheInputFileWriters.WriteGMSExtraction(@"..\..\..\..\JupiterTools\TestData", JVM.SortedAndFilteredPlants, JVM.SelectionStartTime, JVM.SelectionEndTime); }