private UnlockMostRecentLine ( ) : |
||
return |
internal LedgerEntryLine UnlockMostRecentLine()
{
var line = Reconciliations.FirstOrDefault();
line?.Unlock();
return line;
}
}
public void UnlockMostRecentLineShouldNotThrowIfBookIsEmpty() { var subject = new LedgerBook(new FakeLogger()) { Name = "Foo", Modified = new DateTime(2011, 12, 4), FileName = @"C:\TestLedgerBook.xml", }; LedgerEntryLine result = subject.UnlockMostRecentLine(); Assert.IsNull(result); }