public async Task WhenIWaitThatLastImportedQifdataIsAvailableInExport(Wrapper <string> accountName)
        {
            var account = await Context.GmcAccounts.GetByName(accountName);

            Context.LastExportedQifData = await Context.GmcOperations.WaitExportAvailability(account.Id, Context.LastQifImportResult.ImportedQifData);

            Context.LastExportedQifDom = QifMapper.ParseQifDom(Context.LastExportedQifData);
        }
        public async Task WhenIExportTheQifDataFromAccount(Wrapper <string> accountName, DateTime startDate, DateTime endDate)
        {
            var account = await Context.GmcAccounts.GetByName(accountName);

            Context.LastExportedQifData = await Context.GmcOperations.ExportQif(account.Id, startDate, endDate);

            Context.LastExportedQifDom = QifMapper.ParseQifDom(Context.LastExportedQifData);
        }
Beispiel #3
0
        public void ThenDateParsingIsDoneWithGmcCulture()
        {
            var qifData = @"
!Type:Bank
D09/28/2016
^
";
            // When I parse the decimal data
            var qifDom = QifMapper.ParseQifDom(qifData);

            // Then decimal parsing happened as expected
            qifDom.BankTransactions.First().Date.Should().Be(new DateTime(2016, 09, 28));
        }
Beispiel #4
0
        public void ThenAmountParsingIsDoneWithGmcCulture()
        {
            var qifData = @"
!Type:Bank
T0.01
^
";

            // Given I use a culture different than es-US (which is the one to use for serialization of GMC data)
            CultureInfo.CurrentCulture = new CultureInfo("fr-BE");

            // When I parse the decimal data
            var qifDom = QifMapper.ParseQifDom(qifData);

            // Then decimal parsing happened as expected
            qifDom.BankTransactions.First().Amount.Should().Be((decimal)0.01);
        }