public void DeleteUser_EveryTime_valid() { // mock var userModel = new User() { Id = Guid.NewGuid(), }; _userRepository.Delete(Arg.Any <Guid>()); // Execute _sut.DeleteUser(userModel.Id); // Assert _userRepository.Received(1).Delete(Arg.Any <Guid>()); }
public async Task Delete([FromRoute] string id) { await _securityService.DeleteUser(id); }