public void RemoveAdministratorAsync_AdminType_ReturnsCorrect()
        {
            //Arrange
            _repoWrapper
            .Setup(r => r.CityAdministration.GetFirstOrDefaultAsync(It.IsAny <Expression <Func <CityAdministration, bool> > >(),
                                                                    It.IsAny <Func <IQueryable <CityAdministration>,
                                                                                    IIncludableQueryable <CityAdministration, object> > >()))
            .ReturnsAsync(cityAdm);
            _adminTypeService
            .Setup(a => a.GetAdminTypeByIdAsync(It.IsAny <int>()))
            .Returns(() => Task <AdminTypeDTO> .Factory.StartNew(() => AdminType));
            _userManager
            .Setup(u => u.FindByIdAsync(It.IsAny <string>()));
            _userManager
            .Setup(u => u.RemoveFromRoleAsync(It.IsAny <User>(), It.IsAny <string>()));
            _repoWrapper
            .Setup(r => r.CityAdministration.Update(It.IsAny <CityAdministration>()));
            _repoWrapper
            .Setup(r => r.SaveAsync());

            //Act
            var result = _cityParticipantsService.RemoveAdministratorAsync(It.IsAny <int>());

            //Assert
            _repoWrapper.Verify();
            Assert.NotNull(result);
        }
        public async Task <IActionResult> RemoveAdmin(int adminId)
        {
            await _cityParticipantsService.RemoveAdministratorAsync(adminId);

            _logger.LogInformation($"Admin with ID {{{adminId}}} was removed.");

            return(Ok());
        }