public async Task GetGroup_Should_InvokeRemoteGraphServiceGetGroup_Once() { var id = "*****@*****.**"; await _activeDirectoryService.GetGroupAsync(id); _mockRemoteGraphService.Verify(x => x.GetGroupAsync(id), Times.Once); }
public async Task <IActionResult> GetGroupAsync([FromRoute] string id) { var result = await _activeDirectoryService.GetGroupAsync(id); return(Ok(result)); }