Beispiel #1
0
        public void Simulations()
        {
            var xx = new SimulationsController();
            //find a way to give dummy data... not needed yet...
            var fcs = xx.ForwardCurveSimulations("Natural-Gas-Futures-NYMEX", new DateTime(2010, 1, 1), 12, "PCA", "");

            Assert.IsNotNull(fcs);
        }
Beispiel #2
0
        public SimulationsControllerTest()
        {
            this.simulationsService      = new Mock <ISimulations>();
            this.connectionStringManager = new Mock <IIotHubConnectionStringManager>();
            this.iothubMetrics           = new Mock <IIothubMetrics>();
            this.preprovisionedIotHub    = new Mock <IPreprovisionedIotHub>();
            this.simulationAgent         = new Mock <ISimulationAgent>();
            this.log = new Mock <ILogger>();

            this.target = new SimulationsController(
                this.simulationsService.Object,
                this.connectionStringManager.Object,
                this.iothubMetrics.Object,
                this.preprovisionedIotHub.Object,
                this.simulationAgent.Object,
                this.log.Object);
        }
Beispiel #3
0
        public SimulationsControllerTest()
        {
            this.simulationsService         = new Mock <ISimulations>();
            this.devices                    = new Mock <IDevices>();
            this.factory                    = new Mock <IFactory>();
            this.connectionStringValidation = new Mock <IConnectionStringValidation>();
            this.iothubMetrics              = new Mock <IIothubMetrics>();
            this.preprovisionedIotHub       = new Mock <IPreprovisionedIotHub>();
            this.defaultRatingConfig        = new Mock <IRateLimitingConfig>();
            this.simulationAgent            = new Mock <ISimulationAgent>();
            this.log = new Mock <ILogger>();

            this.target = new SimulationsController(
                this.simulationsService.Object,
                this.connectionStringValidation.Object,
                this.iothubMetrics.Object,
                this.defaultRatingConfig.Object,
                this.preprovisionedIotHub.Object,
                this.simulationAgent.Object,
                this.factory.Object,
                this.log.Object);
        }