private void testVariables(SchemeDbRecord o, string id, string dosageId, string queueNr, string length, string amount, string times, string timeOfDay, DateTime vFrom, DateTime vTo) { Assert.AreEqual(id, o.ID); Assert.AreEqual(dosageId, o.DosageId); Assert.AreEqual(queueNr, o.QueueNr); Assert.AreEqual(length, o.Length); Assert.AreEqual(amount, o.Amount); Assert.AreEqual(times, o.Times); Assert.AreEqual(timeOfDay, o.TimeOfDay); Assert.AreEqual(vFrom, o.ValidFrom); Assert.AreEqual(vTo, o.ValidTo); }
public static SchemeObject Create(string id, string dosageId, string queueNr, string length, string amount, string times, string timeOfDay, DateTime?validFrom = null, DateTime?validTo = null) { var o = new SchemeDbRecord() { ID = id, DosageId = dosageId, QueueNr = queueNr, Length = length, Amount = amount, Times = times, TimeOfDay = timeOfDay, ValidFrom = validFrom ?? DateTime.MinValue, ValidTo = validTo ?? DateTime.MaxValue }; return(new SchemeObject(o)); }
public static SchemeObject Create(SchemeDbRecord dbrecord) { return(new SchemeObject(dbrecord)); }