/*********************************************************************/ public void createDateFolder() { string result; //create folder with the year date string path = ism.createFolder("c:/OutputDir", GetDateTakenFromImage("c:/OutputDir").Year.ToString(), out result); //create folder with the month date string pathMonth = ism.createFolder(path, GetDateTakenFromImage("c:/OutputDir").Month.ToString(), out result); //move image ism.moveFile(path, pathMonth, out result); //notify logger m_logging.Log(, ); //for thumbnails directory string pathFolder = ism.createFolder("c:/OutputDir", "Thumbnails", out result); //create folder with the year date string path2 = ism.createFolder("c:/OutputDir", "Year", out result); //create folder with the month date string pathMonth2 = ism.createFolder(path, "Month", out result); string ThumbSize = ConfigurationManager.AppSettings["ThumbnailSize"]; ism.AddFile(pathMonth, "Thumbnails", out result); //notify logger m_logging. }
public void TestMethod1() { int tumb = 120; bool result; string OutputDir = "C:\\Users\\Orian Edri\\Desktop\\ImageServiceDir\\Images"; IImageServiceModal imageModal = new ImageServiceModal(OutputDir, tumb); string ss = imageModal.AddFile("C:\\Users\\Orian Edri\\Desktop\\ImageServiceDir\\Handler1\\ll.jpg", out result); Assert.AreEqual(result, true, ss); }