public Operation(TKey id, Verb verb, object datum) { Dbc.Requires(datum != null); Id = id; Verb = verb; Datum = datum; }
private void AnExceptionIsThrown() { _ex = Assert.Throws <DbcException>(() => Dbc.Requires(_condition, _message)); }
private void AnExceptionIsNotThrown() { Assert.DoesNotThrow(() => Dbc.Requires(_condition, _message)); }
private void ARequiresWithMultipleConditionsThrowsAnExceptionIfAnyConditionIsFalsey() { _ex = Assert.Throws <DbcException>(() => Dbc.Requires(true, _message).And(false)); }