Beispiel #1
0
 public AController(ISensorDbService sensorDbService,
                    ApplicationDbContext dbContext,
                    ISensorApiService sensorApiService
                    )
 {
     this.random           = new Random();
     this.sensorDbService  = sensorDbService ?? throw new ArgumentNullException("DbService in TestController");
     this.dbContext        = dbContext ?? throw new ArgumentNullException("dbContext in TestController");
     this.sensorApiService = sensorApiService ?? throw new ArgumentNullException("sensorDataFetchingService in TestController");
     this.userManager      = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(dbContext));
 }
 public SensorController(ISensorDbService sensorDbService, ISensorApiService sensorApiService)
 {
     this.sensorDbService  = sensorDbService ?? throw new ArgumentNullException("DbService in SensorController");
     this.sensorApiService = sensorApiService ?? throw new ArgumentNullException("sensorDataFetchingService in SensorController");
 }
Beispiel #3
0
 public SensorControllerMock(string username, ISensorDbService sensorDbService, ISensorApiService sensorApiService)
     : base(sensorDbService, sensorApiService)
 {
     this.username = username;
 }