Example #1
0
            public void InitializesValues()
            {
                // Arrange
                var data = new MockDataRepository();
                var diff = new Mock<DiffService>().Object;

                // Act
                IterationService auth = new IterationService(data, diff);

                // Assert
                Assert.Same(data, auth.Data);
                Assert.Same(diff, auth.Diff);
            }
 public IterationsController(IterationService iterations, DiffService diff)
 {
     Iterations = iterations;
     Diff = diff;
 }
 public TestableIterationsController()
 {
     MockData = new MockDataRepository();
     Iterations = new IterationService(MockData, new Mock<DiffService>().Object);
 }
Example #4
0
        public IterationsController(IterationService iterations)
        {
            Requires.NotNull(iterations, "iterations");

            Iterations = iterations;
        }