Beispiel #1
0
        public Test(AtmosphericDevice device, Atmosphere inputAtmosphere, Atmosphere outputAtmosphere)
        {
            if (device == null)
            {
                throw new ArgumentNullException("device");
            }
            if (inputAtmosphere == null)
            {
                throw new ArgumentNullException("inputAtmosphere");
            }
            if (outputAtmosphere == null)
            {
                throw new ArgumentNullException("outputAtmosphere");
            }

            this.device           = device;
            this.InputAtmosphere  = inputAtmosphere;
            this.OutputAtmosphere = outputAtmosphere;

            inputHistory.Add(new AtmosphereState(InputAtmosphere));
            outputHistory.Add(new AtmosphereState(OutputAtmosphere));

            device.InputAtmosphere  = InputAtmosphere;
            device.OutputAtmosphere = OutputAtmosphere;
        }
Beispiel #2
0
 public Test(AtmosphericDevice device, string inputSpecifier, string outputSpecifier) :
     this(device, AtmosphereBuilder.BuildAtmosphere(inputSpecifier), AtmosphereBuilder.BuildAtmosphere(outputSpecifier))
 {
 }