Ejemplo n.º 1
0
        public CommentsController(CommentService comments)
        {
            Requires.NotNull(comments, "comments");

            Comments = comments;
        }
Ejemplo n.º 2
0
            public TestableCommentsController()
            {
                MockData = new MockDataRepository();

                Comments = new CommentService(MockData);
            }
Ejemplo n.º 3
0
 public CommentsController(CommentService comments)
 {
     Comments = comments;
 }
Ejemplo n.º 4
0
            public void InitializesValues()
            {
                // Arrange
                var data = new MockDataRepository();

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

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