PageRenderTime 36ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Bifrost.Specs/Validation/for_ChapterValidatorProvider/when_validating_a_chapter_that_does_not_exist.cs

#
C# | 16 lines | 13 code | 3 blank | 0 comment | 0 complexity | d9914f7bb1eb78255ee9236b87156679 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using Bifrost.Sagas;
  2. using Bifrost.Validation;
  3. using Machine.Specifications;
  4. namespace Bifrost.Specs.Validation.for_ChapterValidatorProvider
  5. {
  6. [Subject(typeof (ChapterValidatorProvider))]
  7. public class when_validating_a_chapter_that_does_not_exist : given.a_chapter_validator_provider
  8. {
  9. static IChapterValidator validator;
  10. Because of = () => validator = chapter_validator_provider.GetValidatorFor(null as IChapter);
  11. It should_return_a_null_validator = () => validator.ShouldBeOfType(typeof(NullChapterValidator));
  12. }
  13. }