/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
- using Bifrost.Samples.Blog.Views.Posts;
- using Machine.Specifications;
- using Moq;
-
- namespace Bifrost.Samples.Blog.Views.Specs.Posts.for_PostStatisticsSubscriber.given
- {
- public class a_post_statistics_subscriber
- {
- protected static PostStatisticsSubscriber subscriber;
- protected static Mock<IPostStatisticsService> post_statistics_mock;
-
- Establish context = () =>
- {
- post_statistics_mock = new Mock<IPostStatisticsService>();
- subscriber = new PostStatisticsSubscriber(post_statistics_mock.Object);
- };
- }
- }