public async Task TestEditUserAsync_VerifyUpdateAsyncCalledOnce() { var mockRepository = new Mock <IUserRepository>(); var manageUser = new ManageUser(mockRepository.Object, fixture.ManageUserLogger); var user = new User(); var result = await manageUser.EditUserAsync(10, user); mockRepository.Verify(r => r.UpdateAsync(10, user), Times.Once); }