public async Task GetPreviousAdministrationsOfUserAsync_ReturnsCorrectAdministrations()
        {
            //Arrange
            _repoWrapper
            .Setup(r => r.CityAdministration.GetAllAsync(It.IsAny <Expression <Func <CityAdministration, bool> > >(),
                                                         It.IsAny <Func <IQueryable <CityAdministration>, IIncludableQueryable <CityAdministration, object> > >()))
            .ReturnsAsync(new List <CityAdministration> {
                new CityAdministration()
                {
                    ID   = fakeId,
                    City = new DataAccess.Entities.City()
                }
            });
            _mapper
            .Setup(m => m.Map <IEnumerable <CityAdministration>, IEnumerable <CityAdministrationDTO> >(It.IsAny <IEnumerable <CityAdministration> >()))
            .Returns(GetTestCityAdministration());

            //Act
            var result = await _cityParticipantsService.GetPreviousAdministrationsOfUserAsync(It.IsAny <string>());

            //Assert
            Assert.NotNull(result);
            Assert.IsInstanceOf <IEnumerable <CityAdministrationDTO> >(result);
        }
        public async Task <IActionResult> GetUserPreviousAdministrations(string UserId)
        {
            var userAdmins = await _cityParticipantsService.GetPreviousAdministrationsOfUserAsync(UserId);

            return(Ok(userAdmins));
        }