-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from anion0278/dev
Attempt to fix date parsing
- Loading branch information
Showing
12 changed files
with
110 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
.../IntegrationTests.ConvertTransactions_ParsesAndConvertsTransactions_AmazonBE.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
0740000002001353907Czech Goods s.r.o. 01111900000013280900+00000016514842+000000461730770000000494070190011300424FIO | ||
0750000002001353908000000000000000000000000000000000000026992951669712700000000000000000000000000408-0091951-6697127000124050224 | ||
07500000020013539080000000000000000000000000000000000001062710000000000000000000000000000000000000000000000000000000000124170224 | ||
0750000002001353908000000000000000000000000000000000000026992290539393600000000000000000000000000408-2472290-5393936000124230224 | ||
0750000002001353908000000000000000000000000000000000000062002070906676300000000000000000000000000405-7042070-9066763000124260224 | ||
0750000002001353915000000000000000000000000000000000000026992951669712700000000000000000000000000408-0091951-6697127000124050224 | ||
07500000020013539150000000000000000000000000000000000001062710000000000000000000000000000000000000000000000000000000000124170224 | ||
0750000002001353915000000000000000000000000000000000000026992290539393600000000000000000000000000408-2472290-5393936000124230224 | ||
0750000002001353915000000000000000000000000000000000000062002070906676300000000000000000000000000405-7042070-9066763000124260224 |
272 changes: 45 additions & 227 deletions
272
.../IntegrationTests.ConvertTransactions_ParsesAndConvertsTransactions_AmazonGB.verified.txt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Mapp.DataAccess | ||
{ | ||
public interface IValueParser | ||
{ | ||
decimal ParseDecimal(string value); | ||
DateTime ParseDateTime(string value); | ||
} | ||
|
||
public class CultureDependentValueParser : IValueParser | ||
{ | ||
public CultureInfo CultureInfo { get; } | ||
|
||
public CultureDependentValueParser(CultureInfo cultureInfo) | ||
{ | ||
CultureInfo = cultureInfo; | ||
} | ||
|
||
public DateTime ParseDateTime(string value) | ||
{ | ||
return DateTime.Parse(value, CultureInfo); | ||
} | ||
|
||
public decimal ParseDecimal(string value) | ||
{ | ||
return decimal.Parse(value, CultureInfo); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters