Beispiel #1
0
        public void TestMethodSourceCreateDate()
        {
            Kernel.Instance.Start();
            var modelLogic = new ModelLogic();
            var source     = new Source
            {
                Date           = DateTimeOffset.ParseExact("2015-01-12", "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.None),
                SourceFileType = SourceFileType.Csv,
                LoadedOn       = DateTimeOffset.Now
            };

            using (source.StreamReader = new StreamReader(@"..\..\Data\2015-01\2015-01-12.csv"))
            {
                source = modelLogic.SourceCreate(source);
            }
        }
Beispiel #2
0
        public void TestMethodSourceCreate()
        {
            Kernel.Instance.Start();
            var modelLogic = new ModelLogic();
            var source     = new Source
            {
                SourceFileType = SourceFileType.Csv,
                LoadedOn       = DateTimeOffset.Now
            };
            var fileInfo = new FileInfo(@"..\..\Data\online_export.txt");

            using (source.StreamReader = new StreamReader(@"..\..\Data\online_export.txt"))
            {
                source = modelLogic.SourceCreate(source);
            }
        }