public void EndTaskFromRepo() { mock.Setup(a => a.EndTaskById(1)).Returns(true); TaskBusiness appBusiness = new TaskBusiness(mock.Object, mockuser.Object); var result = appBusiness.EndTaskById(1); Assert.AreEqual(true, result); }
public void End_the_task_from_repo() { // Arrange mock.Setup(a => a.EndTaskById(1)).Returns(true); TaskBusiness appBusiness = new TaskBusiness(mock.Object, mockUser.Object); // Act var result = appBusiness.EndTaskById(1); // Assert Assert.AreEqual(true, result); }
public void EndTask() { TaskBusiness appBusiness = new TaskBusiness(_appRepository, _userData); appBusiness.EndTaskById(1); }