Пример #1
0
        private async void Parse(string csv)
        {
            Deck = Parser.Parse(csv);
            Learn.SetDeck(Deck);
            StateHasChanged();

            var settings = await SettingsStore.Read();

            settings.Decks.Add(Deck);
            SettingsStore.Write(settings);
        }
Пример #2
0
        public LearnTest()
        {
            _dateTime = new DateTimeProviderStub(DateTime.Now);

            var parser = new CsvParser();
            var lines  = File.ReadAllText("TestData/Export.csv");
            var deck   = parser.Parse(lines);

            _learn = new Learn(_dateTime);
            _learn.SetDeck(deck);
        }