示例#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);
            }
示例#2
0
 public IterationsController(IterationService iterations, DiffService diff)
 {
     Iterations = iterations;
     Diff = diff;
 }
 public TestableIterationsController()
 {
     MockData = new MockDataRepository();
     Iterations = new IterationService(MockData, new Mock<DiffService>().Object);
 }
示例#4
0
        public IterationsController(IterationService iterations)
        {
            Requires.NotNull(iterations, "iterations");

            Iterations = iterations;
        }