public void ItShouldListAllThePlacesAsAPartial() { var allPlaces = new List <Place> { new Place("a"), new Place("b") }; _allPlaces.SetupGet(it => it.All).Returns(allPlaces); var result = _controller.ListOfPlaces() as PartialViewResult; Assert.That(result, Is.InstanceOf(typeof(PartialViewResult))); Assert.That(result.Model, Is.SameAs(allPlaces)); Assert.That(result.ViewName, Is.EqualTo("_listOfPlaces")); }