public void SaveUserRoles_Success() { var roles = new RoleModel() { RoleID = 1, ForceRollback = true }; var model = new UserViewModel() { UserID = _userID, Roles = new List <RoleModel>() { roles }, ForceRollback = true }; var response = _controller.SaveUserRoles(model); Assert.IsTrue(response != null, "Response can't be null"); Assert.IsTrue(response.ResultCode == 0, "User roles could not be saved"); }