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

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

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

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

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