Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="team"></param>
 /// <param name="queue"></param>
 /// <param name="calFeed"></param>
 public QueueFeed(string team, string queue, ICalFeed calFeed)
 {
     Team     = team;
     Queue    = queue;
     CalFeed  = calFeed;
     Override = null;
 }
Ejemplo n.º 2
0
        //[TestMethod, TestCategory("FileFeed"), TestCategory("SIC")]
        //public async Task FileFeed_SicIsOpen()
        //{
        //    Assert.IsTrue(await SicBaseTest(_sicFirstMinute, _fileUri));
        //    Assert.IsTrue(await SicBaseTest(_sicLastMinute, _fileUri));
        //}

        //[TestMethod, TestCategory("FileFeed"), TestCategory("SIC")]
        //public async Task FileFeed_SicIsClosed()
        //{
        //    Assert.IsFalse(await SicBaseTest(_sicClosed, _fileUri));
        //}

        //[TestMethod, TestCategory("FileFeed"), TestCategory("SIC")]
        //public async Task FileFeed_SicHolidayIsClosed()
        //{
        //    Assert.IsFalse(await SicBaseTest(_sicHoliday, _fileUri));
        //}

        private static async Task <bool> BaseTest(DateTime day, DateTime time, ICalFeed queue)
        {
            return(await queue.IsOpenAsync(day.Date.AddTicks(time.TimeOfDay.Ticks)));
        }