public void GetCitiesReturnsListOfCities() { //Arrange var moq = new Mock <IRegionsRepository>(); moq.Setup(m => m.GetCities(It.IsAny <int>())).Returns(Task.FromResult(new List <City>() as IEnumerable <City>)); RegionsController controller = new RegionsController(moq.Object); //Act var result = controller.GetCities(3).Result; //Arrange Assert.IsInstanceOfType(result, typeof(IEnumerable <City>)); }