예제 #1
0
 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");
 }
예제 #2
0
        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;
        }
예제 #3
0
    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);
    }
예제 #4
0
        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);
        }