public void test() { var now = DateTime.Now; var result = BizLogic.CheckAllowOrderAtSameLocation(now); Assert.AreEqual(false, result); }
public void testCheckAllowOrderAtSameLocation() { var now = DateTime.Now; var time = now.AddHours(-3); var result = BizLogic.CheckAllowOrderAtSameLocation(time); Assert.AreEqual(true, result); }