PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Bifrost.Specs/Validation/for_ChapterValidationService/given/a_chapter_validation_service.cs

#
C# | 18 lines | 16 code | 2 blank | 0 comment | 0 complexity | eb5419b3e394d11a38bc9e0fc29658f9 MD5 | raw file
 1using Bifrost.Validation;
 2using Machine.Specifications;
 3using Moq;
 4
 5namespace Bifrost.Specs.Validation.for_ChapterValidationService.given
 6{
 7    public class a_chapter_validation_service
 8    {
 9        protected static IChapterValidationService chapter_validation_service;
10        protected static Mock<IChapterValidatorProvider> chapter_validator_provider_mock;
11
12        Establish context = () =>
13        {
14            chapter_validator_provider_mock = new Mock<IChapterValidatorProvider>();
15            chapter_validation_service = new ChapterValidationService(chapter_validator_provider_mock.Object);
16        };
17    }
18}