private void Demo_Load(object sender, EventArgs e) { client = new GraphicsLightClient(pictureBox1.CreateGraphics(), 100); lights = new Lights(client); lights.Start(); }
public LightsOut(IValidator validator, IConsole console, ILights lights, ILightController lightController) { _validator = validator; _console = console; _lights = lights; _lightController = lightController; }
public ConcurrentEffectPerformer( ILights lights, IEffect <T> effect) { this.lights = lights; this.effect = effect; }
public void Setup() { _consoleMock = new Mock <IConsole>(); _randomMock = new Mock <IRandom>(); _lights = new Lights(_consoleMock.Object, _randomMock.Object); }
public SingleEffectPerformer( ILights lights, IEffect <T> effect) { this.lights = lights; this.effect = effect; layer = new Lazy <ILayer>(() => lights.AddLayer()); }
public CarStandard(ILights lights, IWheels wheels) { Console.WriteLine("wheels: " + wheels.Size.ToString() + ", " + wheels.Tires); Console.WriteLine("lights: " + lights.Fog.ToString() + ", " + lights.Type); }