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 GetImagesForBookReturnsOnlyLargeImage() { Expect.Call(requestHelper.GetResponse(null)). IgnoreArguments(). Constraints(Is.TypeOf <List <string> >()). Return(docBookOnlyLargeImage); mocks.ReplayAll(); IImageService imageService = new AWSImageService(requestHelper); IDictionary <string, Image> images = imageService.GetImagesForBook(book); 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]); }