public static void ClassInit(TestContext param) { fakeRS232ReadLock = new Object(); testedRS232 = new SafeRS232Communicator(com0comPort1); testedRS232.Initialize(); fakeRS232 = new SerialPort(com0comPort2, 9600, Parity.None, 8, StopBits.One); fakeRS232.ReadTimeout = READ_TIMEOUT_IN_MS; fakeRS232.WriteTimeout = WRITE_TIMEOUT_IN_MS; fakeRS232.Open(); }
public SafeRS232Controller(RealCarCommunicator comm, SafeRS232Communicator safeRS232Communicator) //TODO: IT SHOULD NOT RELY ON RealCarCommunicator but on ICarCommunicator //its untestable now { communicator = comm; RS232 = safeRS232Communicator; }
//TODO: IT SHOULD NOT RELY ON RealCarCommunicator but on ICarCommunicator //its untestable now public SafeRS232Controller(RealCarCommunicator comm, SafeRS232Communicator safeRS232Communicator) { communicator = comm; RS232 = safeRS232Communicator; }