public void Get_Task_By_Id_from_repo() { // Arrange mock.Setup(a => a.GetTaskById(1)).Returns(new Task { Task_Id = 1, Task1 = "TestTask", Priority = 1, Start_date = DateTime.Now.Date }); AppBusiness appBusiness = new AppBusiness(mock.Object); // Act TaskDTO result = appBusiness.GetTaskById(1); // Assert Assert.AreEqual("TestTask", result.Task); }
public void GetTaskById() { AppBusiness appBusiness = new AppBusiness(_appRepository); appBusiness.GetTaskById(1); }