public async Task GetGroups_Should_InvokeRemoteGraphServiceGetGroups_Once() { var query = "bayer"; await _activeDirectoryService.FindGroupsAsync(query); _mockRemoteGraphService.Verify(x => x.FindGroupAsync(query), Times.Once); }
public async Task <IActionResult> FindGroupsAsync([FromQuery(Name = "q")] string query) { var result = await _activeDirectoryService.FindGroupsAsync(query); return(Ok(result)); }