public void WriteCsv()
        {
            //var result = WriteCsv<DtoTestClass4>.Write(_loggerFactory, "DtoTestClass");

            //Assert.NotNull(result);
            //var item1 = new DtoTestClass4(1, /*Guid.NewGuid(),*/ 2, "Test", "0.0.0.0", true, "ahh");
            //var item2 = new DtoTestClass4(2, /*Guid.NewGuid(),*/ 2, "Test", "0.0.0.0", true, "ahh");
            var array = "yyy";//new char[] {'i', 'i'};
            var item1 = new DtoTestClass5(array);
            //var item2 = new DtoTestClass5( array);
            var list = new List <DtoTestClass5> {
                item1                                /*, item2*/
            };
            var test = WriteCsv <DtoTestClass5> .Export(_loggerFactory, @"C:\temp\Test.csv", list);

            Assert.True(test);
        }
 public void ExportCsv(string fileName)
 {
     //Logger.LogTrace("RepositoryBase ExportCsv: " + GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod()?.Name);
     WriteCsv <TEntity> .Export(_loggerFactory, fileName, FindAll());
 }
Beispiel #3
0
        public void ExportCsvPrivateSetter()
        {
            var result = WriteCsv <Dto.TestClassPrivateSetter> .Export(_loggerFactory, @"C:\temp\Test.csv", _list);

            Assert.NotNull(result);
        }