public void SetupBeforeEachTest() { this.routesRepository = Substitute.For <IRoutesRepository>(); this.pointsRepository = Substitute.For <IPointsRepository>(); this.routesCalculatorService = Substitute.For <IRoutesCalculatorService>(); this.routesConsumerService = new RoutesConsumerService(this.routesRepository, this.pointsRepository, this.routesCalculatorService); }
public RoutesController(IRoutesConsumerService consumerService, IRoutesAdminService adminService) { this.routesConsumerService = consumerService; this.routesAdminService = adminService; }
public void SetupBeforeEachTest() { this.routesConsumerService = Substitute.For <IRoutesConsumerService>(); this.routesAdminService = Substitute.For <IRoutesAdminService>(); this.routesController = new RoutesController(this.routesConsumerService, this.routesAdminService); }