public async Task TestGetAllUsersAsync_VerifyGetAllAsyncCalledOnce() { var mockRepository = new Mock <IUserRepository>(); var manageUser = new ManageUser(mockRepository.Object, fixture.ManageUserLogger); var result = await manageUser.GetAllUsersAsync(); mockRepository.Verify(r => r.GetAllAsync(), Times.Once); }