public ReviewsController(DiffService diff, AuthenticationService auth, ReviewService reviews)
 {
     Diff = diff;
     Reviews = reviews;
     Auth = auth;
 }
 public TestableReviewsController()
 {
     MockData = new MockDataRepository();
     Reviews = new ReviewService(MockData);
 }
Exemple #3
0
        public ReviewsController(ReviewService reviews)
        {
            Requires.NotNull(reviews, "reviews");

            Reviews = reviews;
        }
Exemple #4
0
            public void InitializesValues()
            {
                // Arrange
                var data = new MockDataRepository();

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

                // Assert
                Assert.Same(data, auth.Data);
            }
 public ChangesController(ReviewService reviews, AuthenticationService auth, DiffService diff)
 {
     Reviews = reviews;
     Auth = auth;
     Diff = diff;
 }
Exemple #6
0
 public MyController(ReviewService reviews)
 {
     Reviews = reviews;
 }