public void CsvExceptionRecordTest1()
        {
            FileObject         fileObject         = new FileObject(_fileUri);
            CsvExceptionRecord csvExceptionRecord = new CsvExceptionRecord(fileObject.FileUri, fileObject);

            Assert.IsNotNull(csvExceptionRecord);
        }
        public void ToStringTest()
        {
            FileObject fileObject = new FileObject(_fileUri)
            {
                LastModified = _lastModified
            };

            CsvExceptionRecord csvExceptionRecord = new CsvExceptionRecord(fileObject.FileUri, fileObject);

            Assert.IsNotNull(csvExceptionRecord);
            string output = csvExceptionRecord.ToString();

            Assert.IsTrue(output.StartsWith($"{_lastModified:o},{_pid},{_fileType},{_fileUri}"), $"output: {output}");
        }
        public void PopulateTest()
        {
            FileObject         fileObject         = new FileObject(_fileUri);
            CsvExceptionRecord csvExceptionRecord = new CsvExceptionRecord();

            Assert.IsNotNull(csvExceptionRecord);

            csvExceptionRecord.Populate(fileObject, _fileUri);
            Assert.IsTrue(csvExceptionRecord.PID.Equals(_pid));

            csvExceptionRecord.Populate(fileObject, Path.GetFileName(_fileUri));
            Assert.IsTrue(csvExceptionRecord.Type.Equals(_fileType));
            Assert.IsTrue(csvExceptionRecord.PID.Equals(_pid));

            csvExceptionRecord.Populate(fileObject, _fileUriNoPid);
            Assert.IsTrue(csvExceptionRecord.Type.Equals(_fileType));
            Assert.IsTrue(csvExceptionRecord.PID.Equals(0));
        }
        public void CsvExceptionRecordTest()
        {
            CsvExceptionRecord csvExceptionRecord = new CsvExceptionRecord();

            Assert.IsNotNull(csvExceptionRecord);
        }