public EndpointsControllerTests() { _endpointRegistry = new Mock<IEndpointRegistry>(); _statsRepository = new Mock<IEndpointStatsRepository>(); var timeCoordinator = new Mock<ITimeCoordinator>(); timeCoordinator.Setup(c => c.UtcNow).Returns(_utcNow); _controller = new EndpointsController(_endpointRegistry.Object, _statsRepository.Object, timeCoordinator.Object); }
public EndpointsControllerTests() { _endpointRegistry = new Mock<IEndpointRegistry>(); _controller = new EndpointsController(_endpointRegistry.Object); }
public EndpointsControllerTests() { _endpointRegistry = new Mock<IEndpointRegistry>(); _statsRepository = new Mock<IEndpointStatsRepository>(); _controller = new EndpointsController(_endpointRegistry.Object, _statsRepository.Object); }