public void SendAndReadPacketTest() { var configService = new ConfigService(); IDeviceService deviceService = new DeviceService(new ConfigService(), new SerialService(configService)); deviceService.Open(); deviceService.DeviceCheck(); deviceService.Close(); }