예제 #1
0
        static void Main(string[] args)
        {
            ITransponderReceiver transponderDataReceiver = TransponderReceiverFactory.CreateTransponderDataReceiver();

            ITrackReceiver trackReceiver = new TrackDataReceiver();

            var decoder = new DecodingWithMethod(transponderDataReceiver, trackReceiver);

            System.Console.ReadLine();
        }
예제 #2
0
        public void Setup()
        {
            _receiver      = Substitute.For <ITransponderReceiver>();
            _trackReceiver = Substitute.For <ITrackReceiver>();
            _uut           = new DecodingWithMethod(_receiver, _trackReceiver);

            _fakeTransponderData = new RawTransponderDataEventArgs(new List <string>()
            {
                "TRK001;12345;67890;12000;20151014123456789"
            }
                                                                   );
        }