public void Verify_ShouldReturnHires2AsNullIfReportIsNotPresentOnDisk() { //Arrange const string itemNumber = "0101-15001"; var fakeFileSystem = FakeFileSystem.MediaFileSystemForItemNumber(new Dictionary<string, MockFileData>() { {String.Format(@"C:\Users\maMLUka\Documents\jewelryonnet\internet-sites\jon-images\jewelry\{0}-pic-wg.jpg",itemNumber),new MockFileData("")}, {String.Format(@"C:\Users\maMLUka\Documents\jewelryonnet\internet-sites\jon-images\jewelry\{0}-icon-wg.jpg",itemNumber),new MockFileData("")}, {String.Format(@"C:\Users\maMLUka\Documents\jewelryonnet\internet-sites\jon-images\jewelry\{0}-hand-wg.jpg",itemNumber),new MockFileData("")}, {String.Format(@"C:\Users\maMLUka\Documents\jewelryonnet\internet-sites\jon-images\jewelry\{0}-hires-wg.jpg",itemNumber),new MockFileData("")}, {String.Format(@"C:\Users\maMLUka\Documents\jewelryonnet\internet-sites\jon-images\jewelry\{0}-mov-wg.flv",itemNumber),new MockFileData("")}, {String.Format(@"C:\Users\maMLUka\Documents\jewelryonnet\internet-sites\jon-images\jewelry\{0}-report-all.jpg",itemNumber),new MockFileData("")}, //{String.Format(@"C:\Users\maMLUka\Documents\jewelryonnet\internet-sites\jon-images\jewelry\{0}-hires2-wg.jpg",itemNumber),new MockFileData("")} }); var media = CreateMedia(); var mediaVerifier = new MediaVerifier(fakeFileSystem); //Act var verifiedmedia = mediaVerifier.Verify(media); //Assert verifiedmedia.HiRes2URLForWebDisplay.Should().BeNull(); }
public void Verify_ShouldReturnTheSamePathIfAllFilesArePresent() { //Arrange var fakeFileSystem = FakeFileSystem.MediaFileSystemForItemNumber(); var media = CreateMedia(); var mediaVerifier = new MediaVerifier(fakeFileSystem); //Act var verifiedmedia = mediaVerifier.Verify(media); //Assert verifiedmedia.IconURLForWebDisplay.Should().NotBeNull(); verifiedmedia.PictureURLForWebDisplay.Should().NotBeNull(); verifiedmedia.HiResURLForWebDisplay.Should().NotBeNull(); verifiedmedia.HandURLForWebDisplay.Should().NotBeNull(); verifiedmedia.MovieURLForWebDisplay.Should().NotBeNull(); }