public async Task <IActionResult> GetUser(int id) { if (id < 0) { return(BadRequest("User Id is invalid:" + id)); } return(Ok(await _manageUser.GetUser(id))); }
public async Task VerifyGetUser() { await _manageUser.GetUser(12); _userRepository.Verify(r => r.GetUser(12), Times.Once); }