// GET: Media
        public ActionResult Card(string id)
        {
            IMediaImageService mediaImageService = new MediaImageService(
                new FileManager(),
                new ServerManager(Server),
                new SettingsManager());

            ImageDetail imageDetail = mediaImageService.GetMediaImagePath(id);

            return File(imageDetail.FilePath, imageDetail.ContentType);
        }
        public void GetMediaImagePath_When_ID_Passed_In_And_File_NotFound_Returns_Image_Details()
        {
            _mediaImageService = new MediaImageService(new FileNotExistsFileManager(), new MockServerManager(), new MockSettingsManager());

            string expectedContentType = "image/png";
            string expectedFilePath = @"z:\test\test\TEST_ID.png";

            ImageDetail actualImageDetail = _mediaImageService.GetMediaImagePath("TEST_ID");

            Assert.IsTrue(expectedContentType == actualImageDetail.ContentType);
            Assert.IsTrue(expectedFilePath == actualImageDetail.FilePath);
        }
        public void GetMediaImagePath_When_Construct_Object_Creates_Object()
        {
            _mediaImageService = new MediaImageService(new FileNotExistsFileManager(), new MockServerManager(), new MockSettingsManager());

            Assert.IsNotNull(_mediaImageService);
        }
 public void SetUp()
 {
     _mediaImageService = null;
 }