Esempio n. 1
0
        public void FileDetailsTest()
        {
            string            fileName = "New Text Document (2).txt";
            SerializerService service  = new SerializerService(new OoportunityService());

            Assert.AreEqual(new List <string> {
                ".txt", "0KB", "11/7/2019 11:25:04 AM"
            }[0], service.FileDetails(fileName)[0]);
            Assert.AreEqual(new List <string> {
                ".txt", "0KB", "11/7/2019 11:25:04 AM"
            }[1], service.FileDetails(fileName)[1]);
            Assert.AreEqual(new List <string> {
                ".txt", "0KB", "11/7/2019 11:25:04 AM"
            }[2], service.FileDetails(fileName)[2]);
        }
Esempio n. 2
0
 public List <string> FileDetails([FromUri] string fileName)
 {
     return(_serializerService.FileDetails(fileName));
 }