PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms 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
 1using Bifrost.Sagas;
 2using Bifrost.Validation;
 3using Machine.Specifications;
 4
 5namespace Bifrost.Specs.Validation.for_ChapterValidatorProvider
 6{
 7    [Subject(typeof (ChapterValidatorProvider))]
 8    public class when_validating_a_chapter_that_does_not_exist : given.a_chapter_validator_provider
 9    {
10        static IChapterValidator validator;
11
12        Because of = () => validator = chapter_validator_provider.GetValidatorFor(null as IChapter);
13
14        It should_return_a_null_validator = () => validator.ShouldBeOfType(typeof(NullChapterValidator));
15    }
16}