Example #1
0
        public CommentsController(CommentService comments)
        {
            Requires.NotNull(comments, "comments");

            Comments = comments;
        }
            public TestableCommentsController()
            {
                MockData = new MockDataRepository();

                Comments = new CommentService(MockData);
            }
Example #3
0
 public CommentsController(CommentService comments)
 {
     Comments = comments;
 }
Example #4
0
            public void InitializesValues()
            {
                // Arrange
                var data = new MockDataRepository();

                // Act
                CommentService auth = new CommentService(data);

                // Assert
                Assert.Same(data, auth.Data);
            }