protected void GetImagesForVideoReturnsCorrectImage(string imageType) { Expect.Call(requestHelper.GetResponse(null)). IgnoreArguments(). Constraints(Is.TypeOf <List <string> >()). Return(docVideoNormal); mocks.ReplayAll(); IImageService imageService = new AWSImageService(requestHelper); IDictionary <string, Image> images = imageService.GetImagesForVideo(movie); Image image = images[imageType]; Assert.AreEqual(testImagesVideo[imageType], image); }
public void GetImagesForVideoReturnsOnlyLargeImage() { Expect.Call(requestHelper.GetResponse(null)). IgnoreArguments(). Constraints(Is.TypeOf <List <string> >()). Return(docVideoOnlyLargeImage); mocks.ReplayAll(); IImageService imageService = new AWSImageService(requestHelper); IDictionary <string, Image> images = imageService.GetImagesForVideo(movie); Assert.IsNull(images[AWSImageService.SWATCHIMAGE]); Assert.IsNull(images[AWSImageService.SMALLIMAGE]); Assert.IsNull(images[AWSImageService.THUMBNAILIMAGE]); Assert.IsNull(images[AWSImageService.TINYIMAGE]); Assert.IsNull(images[AWSImageService.MEDIUMIMAGE]); Assert.IsNotNull(images[AWSImageService.LARGEIMAGE]); }