예제 #1
0
        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);
        }
예제 #2
0
 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);
 }