public async Task GetAllRegionsReportsAsync_TakesParameters_OkObjectResult()
        {
            //Arrange
            var report = new RegionAnnualReportTableObject()
            {
                Id = 1
            };

            _userManager.Setup(x => x.GetUserAsync(It.IsAny <ClaimsPrincipal>())).ReturnsAsync(new User());
            _userManager.Setup(x => x.GetRolesAsync(It.IsAny <User>())).ReturnsAsync(new List <string>()
            {
                "Admin"
            });
            _regionAnnualReportService.Setup(r => r.GetAllRegionsReportsAsync(It.IsAny <User>(), It.IsAny <bool>(),
                                                                              It.IsAny <string>(), It.IsAny <int>(), It.IsAny <int>(), It.IsAny <int>(), It.IsAny <bool>()))
            .ReturnsAsync(new List <RegionAnnualReportTableObject>()
            {
                report
            });

            // Act
            var result = await _regionController.GetAllRegionsReportsAsync("", 1, 1, 1, true);

            //Assert
            Assert.IsInstanceOf <OkObjectResult>(result);
            Assert.IsInstanceOf <List <RegionAnnualReportTableObject> >((result as ObjectResult).Value);
            Assert.IsNotEmpty((result as ObjectResult).Value as List <RegionAnnualReportTableObject>);
            Assert.True(((result as ObjectResult).Value as List <RegionAnnualReportTableObject>).Contains(report));
        }
        public async Task GetAllRegionsReportsAsync()
        {
            //Arrange
            var report = new RegionAnnualReportTableObject()
            {
                Id = 1
            };

            _mockRepositoryWrapper
            .Setup(r => r.RegionAnnualReports.GetRegionAnnualReportsAsync(It.IsAny <string>(), It.IsAny <bool>(), It.IsAny <string>(), It.IsAny <int>(),
                                                                          It.IsAny <int>(), It.IsAny <int>(), It.IsAny <bool>())).ReturnsAsync(new List <RegionAnnualReportTableObject>()
            {
                report
            });

            //Act
            var result = await _service.GetAllRegionsReportsAsync(new User(), true, "", 1, 1, 1, true);

            //Assert
            Assert.IsNotNull(result);
            Assert.IsNotEmpty(result.ToList());
            Assert.True(result.ToList().Contains(report));
        }