Пример #1
0
 public Operation(TKey id, Verb verb, object datum)
 {
     Dbc.Requires(datum != null);
     Id    = id;
     Verb  = verb;
     Datum = datum;
 }
Пример #2
0
 private void AnExceptionIsThrown()
 {
     _ex = Assert.Throws <DbcException>(() => Dbc.Requires(_condition, _message));
 }
Пример #3
0
 private void AnExceptionIsNotThrown()
 {
     Assert.DoesNotThrow(() => Dbc.Requires(_condition, _message));
 }
Пример #4
0
 private void ARequiresWithMultipleConditionsThrowsAnExceptionIfAnyConditionIsFalsey()
 {
     _ex = Assert.Throws <DbcException>(() => Dbc.Requires(true, _message).And(false));
 }