public Car(int Id) { this.Id = Id; Accessories = new List <string>(); Engine = new Engine(); Base = new Base(); Breaks = new Breaks(); Electronics = new Electronics(); ExhaustingSystem = new ExhaustingSystem(); }
public TestingResult IsNotBroken(ExhaustingSystem exhaustingSystem) { if (!exhaustingSystem.OutNotEliminatedWhileCarStopped) { return(new TestingResult() { Passed = false, ResultOfInvestigation = "Gas is eleiminated while the car is stopped", }); } if (exhaustingSystem.GasEliminatedWhenCarIsRunning > 200) { return(new TestingResult() { Passed = false, ResultOfInvestigation = "Gas eleiminated while car is running over 200", }); } return(new TestingResult() { Passed = true, }); }