Ejemplo n.º 1
0
 public void Init()
 {
     cap       = 10;
     capTank   = 100;
     engaged   = 0;
     model     = "Test";
     reEngine  = new ReactiveEngine("react");
     turEngine = new TurbopropEngine("react");
     hEngine   = new GasTurbineEngine("gastour");
 }
Ejemplo n.º 2
0
        private ReactiveEngine getReactiveEngine(string[] items)
        {
            ReactiveEngine reactiveEngine = new ReactiveEngine();

            reactiveEngine.Power      = int.Parse(items[7]);
            reactiveEngine.Manufactor = items[8];
            reactiveEngine.Classes    = items[9];

            return(reactiveEngine);
        }
Ejemplo n.º 3
0
        public ReactiveEngine getReactiveEngine(string[] items)
        {
            ReactiveEngine reactiveEngine = new ReactiveEngine();

            reactiveEngine.Power        = int.Parse(items[7]);
            reactiveEngine.Manufacturer = items[8];
            reactiveEngine.VoiceVal     = int.Parse(items[9]);

            return(reactiveEngine);
        }
Ejemplo n.º 4
0
        public void BaseTests(int newSpeed)
        {
            var gas = new GasTurbineEngine("gas");
            var re  = new ReactiveEngine("gas");
            var tur = new TurbopropEngine("gas");

            Assert.DoesNotThrow(() => gas.ChangeSpeed(newSpeed));
            Assert.DoesNotThrow(() => re.ChangeSpeed(newSpeed));
            Assert.DoesNotThrow(() => tur.ChangeSpeed(newSpeed));
            Assert.DoesNotThrow(() => gas.Fly());
            Assert.DoesNotThrow(() => re.Fly());
            Assert.DoesNotThrow(() => tur.Fly());
        }
 private ReadOnlyMetadataServiceContext(CoreReactiveEngine engine, ReactiveEngine e)
     : base(engine.ExpressionService, e, e, new ReadOnlyMetadataProvider(engine))
 {
 }