Ejemplo n.º 1
0
 private void PrintPairingStatus()
 {
     Console.WriteLine("# --------------- STATUS ------------------");
     Console.WriteLine($"# {_posId} <-> Eftpos: {_eftposAddress} #");
     Console.WriteLine($"# SPI STATUS: {_spi.CurrentStatus}     FLOW: {_spi.CurrentFlow} #");
     Console.WriteLine($"# SPI CONFIG: {_spi.Config}");
     Console.WriteLine("# -----------------------------------------");
     Console.WriteLine($"# POS: v{_version} Spi: v{Spi.GetVersion()}");
 }
Ejemplo n.º 2
0
        public void GetSpiVersion_OnValidResponse_ReturnObject()
        {
            // act
            var spiVersion    = Spi.GetVersion();
            var comWrapper    = new ComWrapper();
            var comSpiVersion = comWrapper.GetSpiVersion();

            // assert
            Assert.Equal(spiVersion, comSpiVersion);
        }
Ejemplo n.º 3
0
 private void PrintPairingStatus()
 {
     Console.WriteLine("# --------------- STATUS ------------------");
     Console.WriteLine($"# {_posId} <-> Eftpos: {_eftposAddress} #");
     Console.WriteLine($"# SPI STATUS: {_spi.CurrentStatus}     FLOW: {_spi.CurrentFlow} #");
     Console.WriteLine("# ----------------TABLES-------------------");
     Console.WriteLine($"#    Open Tables: {tableToBillMapping.Count}");
     Console.WriteLine($"# Bills in Store: {billsStore.Count}");
     Console.WriteLine($"# Assembly Bills: {assemblyBillDataStore.Count}");
     Console.WriteLine($"# -----------------------------------------");
     Console.WriteLine($"# POS: v{_version} Spi: v{Spi.GetVersion()}");
 }
Ejemplo n.º 4
0
 public string GetSpiVersion()
 {
     return(Spi.GetVersion());
 }