public void TestFileUploadError()
        {
            FileInfo fileInfo = new FileInfo(Path.GetFullPath("UploadSample.txt"));

            Mock<IPhotoReportView> view = new Mock<IPhotoReportView>();
            view.Setup(viewSetup => viewSetup.FileName).Returns("UploadSample.txt");
            view.Setup(viewSetup => viewSetup.UploadedFile).Returns(fileInfo.OpenRead());
            view.Setup(viewSetup => viewSetup.UploadFolder).Returns(Path.GetTempPath());
            view.SetupProperty(viewSetup => viewSetup.FullFilePath);

            PhotoReportPresenter presenter = new PhotoReportPresenter(view.Object);
            presenter.SaveFile();
        }
        public void TestFileUploadOK()
        {
            FileInfo fileInfo = new FileInfo(Path.GetFullPath("Logo.png"));
            Mock<IPhotoReportView> view = new Mock<IPhotoReportView>();
            view.Setup(viewSetup => viewSetup.FileName).Returns("Logo.png");
            view.Setup(viewSetup => viewSetup.UploadedFile).Returns(fileInfo.OpenRead());
            view.Setup(viewSetup => viewSetup.UploadFolder).Returns(Path.GetTempPath());
            view.SetupProperty(viewSetup => viewSetup.FullFilePath);

            PhotoReportPresenter presenter = new PhotoReportPresenter(view.Object);
            presenter.SaveFile();

            Assert.IsTrue(System.IO.File.Exists(view.Object.FullFilePath));
        }