public async Task GetAssociateWidgetAsyncMethod() { Program.BuildConfiguration(); var data = await DashboardService.GetAssociateWidgetAsync(new TeamHttpContext(MockData.httpContext), MockData.year, MockData.month).ConfigureAwait(false); string result = data.Code == HttpStatusCode.OK ? "OK" : "ERROR"; Xunit.Assert.Equal("OK", result); }