public async Task GetUserAdministrations_Valid_Test() { // Arrange _cityParticipantsService .Setup(c => c.GetAdministrationsOfUserAsync(It.IsAny <string>())) .ReturnsAsync(It.IsAny <IEnumerable <CityAdministrationDTO> >()); CitiesController citycon = CreateCityController; // Act var result = await citycon.GetUserAdministrations(GetStringFakeId()); // Assert Assert.NotNull(result); Assert.IsInstanceOf <OkObjectResult>(result); }