public void TestIfGetTasksForAGivenDateReturnZeroForWrongDate() { string date = "10.10.2010"; List <Task> actualTaskList = _persistance.GetTasksForAGivenDate(date); int expectedResul = 0; Assert.AreEqual(expectedResul, actualTaskList.Count); }
/// <summary> /// Halip Vasile Emanuel // Call the method from the persistance layer. /// Get a list of tasks for a given date. /// </summary> /// <param name="date"></param> /// <returns>A tasks List</returns> public List <Task> GetTasksForAGivenDate(string date) { return(_persistance.GetTasksForAGivenDate(date)); }