public void Chain_call_to_check_model_error_by_key()
        {
            var returnVal = Substitute.For <IModelErrorTest <TestViewModel> >();

            _modelTest.AndModelError("Key").Returns(returnVal);

            Assert.That(_modelErrorTest.AndModelError("Key"), Is.EqualTo(returnVal));
        }
Exemple #2
0
 public IModelErrorTest <TModel> AndModelError(string errorKey)
 {
     return(_modelTest.AndModelError(errorKey));
 }