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