public void IMSLogicManager_ApproveIntervention_Success() { Guid interventionId = IMSLogicManager_ApproveInterventionTests_Setup(); Mock <IClientDataAccess> clients = new Mock <IClientDataAccess>(); Guid clientDistrict = new Guid(); Client client = new Client("Po", "Asquith", clientDistrict); clients.Setup(c => c.fetchClientById(It.IsAny <Guid>())).Returns(client); Mock <IUserDataAccess> users = new Mock <IUserDataAccess>(); User user = new User("AccountantX", 1, 20, 200, "", clientDistrict); users.Setup(u => u.fetchUserByIdentityId(It.IsAny <Guid>())).Returns(user); Mock <IInterventionService> interventionService = new Mock <IInterventionService>(); interventionService.Setup(x => x.updateInterventionState(It.IsAny <Guid>(), IMSLogicLayer.Enums.InterventionState.Approved, user.Id)).Returns(true); Mock <IDistrictDataAccess> districts = new Mock <IDistrictDataAccess>(); District district = new District("Sydney"); districts.Setup(d => d.fetchDistrictById(It.IsAny <Guid>())).Returns(district); managerService.Clients = clients.Object; managerService.Users = users.Object; managerService.InterventionService = interventionService.Object; managerService.Districts = districts.Object; bool result = managerService.ApproveAnIntervention(interventionId); Assert.IsTrue(result); }