/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

  1. using Bifrost.Samples.Blog.Views.Posts;
  2. using Machine.Specifications;
  3. using Moq;
  4. namespace Bifrost.Samples.Blog.Views.Specs.Posts.for_PostStatisticsSubscriber.given
  5. {
  6. public class a_post_statistics_subscriber
  7. {
  8. protected static PostStatisticsSubscriber subscriber;
  9. protected static Mock<IPostStatisticsService> post_statistics_mock;
  10. Establish context = () =>
  11. {
  12. post_statistics_mock = new Mock<IPostStatisticsService>();
  13. subscriber = new PostStatisticsSubscriber(post_statistics_mock.Object);
  14. };
  15. }
  16. }