Example #1
0
        public void IndexCityViewModelIsNotNull_When_data_is_real()
        {
            // Arrange
            controller = new FavoriteCitiesController(unitOfWork);

            // Act
            var result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result.Model);
        }
Example #2
0
        public void IndexCityViewModelIsNotNull()
        {
            // Arrange
            controller = new FavoriteCitiesController(mockUnitOfWork.Object);

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result.Model);
        }