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); }
public IterationsController(IterationService iterations) { Requires.NotNull(iterations, "iterations"); Iterations = iterations; }