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); }
private MoneyFile Load() { var file = MoneyFile.Load(this.dbPath); file.Logger = new TestLoggerAdapter(this.logger); return(file); }
public void Load_ThrowsOnNullOrEmpty() { Assert.Throws <ArgumentNullException>(() => MoneyFile.Load(null)); Assert.Throws <ArgumentException>(() => MoneyFile.Load(string.Empty)); }