Esempio n. 1
0
        public void TestEditBatchType()
        {
            TestAddBatchType();
            bool success1 = BatchTypeDAL.EditBatchType(type2.Name, type1.VariableA, type1.VariableB, type1.TemperatureRequirement, type1.ViscosityRequirement, type1.SpeedRequirement, type1.TimeRequirement);

            Assert.IsTrue(success1);
        }
Esempio n. 2
0
 /// <summary>
 /// Edits the batch type.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="variableA">The variable A.</param>
 /// <param name="variableB">The variable B.</param>
 /// <param name="temperatureReq">The temperature requirement.</param>
 /// <param name="viscosityReq">The viscosity requirement.</param>
 /// <param name="speedReq">The speed requirement.</param>
 /// <param name="timeReq">The time requirement.</param>
 /// <returns></returns>
 public static bool EditBatchType(string name, double variableA, double variableB, double?temperatureReq, double?viscosityReq, double?speedReq, double?timeReq)
 {
     try
     {
         return(BatchTypeDAL.EditBatchType(name, variableA, variableB, temperatureReq, viscosityReq, speedReq, timeReq));
     }
     catch
     {
         throw;
     }
 }