Пример #1
0
 public void EvaluateEquationTest()
 {
   OrganicN target = new OrganicN(); // TODO: Initialize to an appropriate value
   double CoarseSandPercentage = 0F; // TODO: Initialize to an appropriate value
   double FineSandPercentage = 8.71; // TODO: Initialize to an appropriate value
   double HumusPercentage = 7.3; // TODO: Initialize to an appropriate value
   double Precipitation = 800; // TODO: Initialize to an appropriate value
   double Slope = 3.23; // TODO: Initialize to an appropriate value
   double expected = 0F; // TODO: Initialize to an appropriate value
   double actual;
   actual = target.EvaluateEquation(CoarseSandPercentage, FineSandPercentage, HumusPercentage, Precipitation, Slope);
   Assert.AreEqual(expected, actual);
   Assert.Inconclusive("Verify the correctness of this test method.");
 }
Пример #2
0
 public static ISource GetSourceModel(string ModelID)
 {
   ISource NewModel = null;
   switch (ModelID)
   {
     case "Atmospheric":
       NewModel = new AtmosphericDeposition();
       break;
     case "GroundwaterSource":
       NewModel = new GroundWaterSource();
       break;
     case "PointSource":
       NewModel = new PointSource();
       break;
     case "OrganicN":
       NewModel = new OrganicN();
       break;
   }
   return NewModel;
 }
Пример #3
0
        public static ISource GetSourceModel(string ModelID)
        {
            ISource NewModel = null;

            switch (ModelID)
            {
            case "Atmospheric":
                NewModel = new AtmosphericDeposition();
                break;

            case "GroundwaterSource":
                NewModel = new GroundWaterSource();
                break;

            case "PointSource":
                NewModel = new PointSource();
                break;

            case "OrganicN":
                NewModel = new OrganicN();
                break;
            }
            return(NewModel);
        }