public void GetAll_Test() { var logger = new Mock <IActionLogger>().Object; var directoryService = new Mock <IDirectoryService>().Object; var imagesService = new GetImagesService(directoryService); var imagesController = new ImagesController(imagesService, logger); var jsonResult = imagesController.GetAll(); var files = jsonResult.Value as List <ImageListItem>; Assert.NotNull(jsonResult); Assert.NotNull(files); }