コード例 #1
0
        public async Task GetGroup_Should_InvokeRemoteGraphServiceGetGroup_Once()
        {
            var id = "*****@*****.**";
            await _activeDirectoryService.GetGroupAsync(id);

            _mockRemoteGraphService.Verify(x => x.GetGroupAsync(id), Times.Once);
        }
コード例 #2
0
        public async Task <IActionResult> GetGroupAsync([FromRoute] string id)
        {
            var result = await _activeDirectoryService.GetGroupAsync(id);

            return(Ok(result));
        }