PageRenderTime 15ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/Samples/Blog/Bifrost.Samples.Blog.Views.Specs/Posts/for_PostStatisticsSubscriber/given/a_post_statistics_subscriber.cs

#
C# | 18 lines | 16 code | 2 blank | 0 comment | 0 complexity | 281ab171ea834cd744d1a02f7cf6d765 MD5 | raw file
 1using Bifrost.Samples.Blog.Views.Posts;
 2using Machine.Specifications;
 3using Moq;
 4
 5namespace Bifrost.Samples.Blog.Views.Specs.Posts.for_PostStatisticsSubscriber.given
 6{
 7    public class a_post_statistics_subscriber
 8    {
 9        protected static PostStatisticsSubscriber subscriber;
10        protected static Mock<IPostStatisticsService> post_statistics_mock;
11
12        Establish context = () =>
13                                {
14                                    post_statistics_mock = new Mock<IPostStatisticsService>();
15                                    subscriber = new PostStatisticsSubscriber(post_statistics_mock.Object);
16                                };
17    }
18}