public EntityTestBase(ITestOutputHelper logger)
     : base(logger)
 {
     this.dbPath       = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
     this.Money        = MoneyFile.Load(this.dbPath);
     this.Money.Logger = new TestLoggerAdapter(this.Logger);
 }
Exemple #2
0
    private MoneyFile Load()
    {
        var file = MoneyFile.Load(this.dbPath);

        file.Logger = new TestLoggerAdapter(this.logger);
        return(file);
    }
Exemple #3
0
 public void Load_ThrowsOnNullOrEmpty()
 {
     Assert.Throws <ArgumentNullException>(() => MoneyFile.Load(null));
     Assert.Throws <ArgumentException>(() => MoneyFile.Load(string.Empty));
 }