Ejemplo n.º 1
0
        private void Demo_Load(object sender, EventArgs e)
        {
            client = new GraphicsLightClient(pictureBox1.CreateGraphics(), 100);
            lights = new Lights(client);

            lights.Start();
        }
Ejemplo n.º 2
0
 public LightsOut(IValidator validator, IConsole console, ILights lights, ILightController lightController)
 {
     _validator       = validator;
     _console         = console;
     _lights          = lights;
     _lightController = lightController;
 }
Ejemplo n.º 3
0
 public ConcurrentEffectPerformer(
     ILights lights,
     IEffect <T> effect)
 {
     this.lights = lights;
     this.effect = effect;
 }
Ejemplo n.º 4
0
        public void Setup()
        {
            _consoleMock = new Mock <IConsole>();
            _randomMock  = new Mock <IRandom>();

            _lights = new Lights(_consoleMock.Object, _randomMock.Object);
        }
Ejemplo n.º 5
0
 public SingleEffectPerformer(
     ILights lights,
     IEffect <T> effect)
 {
     this.lights = lights;
     this.effect = effect;
     layer       = new Lazy <ILayer>(() => lights.AddLayer());
 }
Ejemplo n.º 6
0
 public CarStandard(ILights lights, IWheels wheels)
 {
     Console.WriteLine("wheels: " + wheels.Size.ToString() + ", " + wheels.Tires);
     Console.WriteLine("lights: " + lights.Fog.ToString() + ", " + lights.Type);
 }