Exemplo n.º 1
0
        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);
        }