public void Execute_ForNoEntries_ShouldReturnFalse() { var command = new AreTransactionEntriesValidCommand(); var result = command.Execute(new Entry[0]); Assert.That(result, Is.False); }
public void IsValid_ForDebitNotEqualToCredit_ShouldReturnFalse() { var command = new AreTransactionEntriesValidCommand(); var result = command.Execute(new[] { new Entry { Amount = 100, Type = EntryType.Debit }, new Entry { Amount = 200, Type = EntryType.Credit } }); Assert.That(result, Is.False); }