public void OpenStatusTest() { var service = new BusinessStatusService(); BusinessStatus status = service.GetStatus(BusinessStatus.Open, new BusinessTime(new Time(DateTime.Now.AddHours(-1).Hour, 0), new Time(DateTime.Now.AddHours(1).Hour, 0))); Assert.AreEqual(BusinessStatus.Open, status); }
public void ClosedStatusTest() { var service = new BusinessStatusService(); BusinessStatus status = service.GetStatus(BusinessStatus.Close, new BusinessTime(new Time(8, 0), new Time(20, 0))); Assert.AreEqual(BusinessStatus.Close, status); }