public void SetupBeforeEachTest()
 {
     this.pointsRepository      = Substitute.For <IPointsRepository>();
     this.pointsConsumerService = new PointsConsumerService(this.pointsRepository);
 }
Esempio n. 2
0
 public PointsController(IPointsConsumerService consumerService, IPointsAdminService adminService)
 {
     this.pointsConsumerService = consumerService;
     this.pointsAdminService    = adminService;
 }
 public void SetupBeforeEachTest()
 {
     this.pointsConsumerService = Substitute.For <IPointsConsumerService>();
     this.pointsAdminService    = Substitute.For <IPointsAdminService>();
     this.pointsController      = new PointsController(this.pointsConsumerService, this.pointsAdminService);
 }