mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-13 15:21:45 +01:00
38 lines
821 B
C#
38 lines
821 B
C#
|
using NUnit.Framework;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
using NFC;
|
|||
|
using NFC.Readers.PCSC;
|
|||
|
|
|||
|
namespace NFC_Test
|
|||
|
{
|
|||
|
[TestFixture, Explicit]
|
|||
|
public class REAL_Windows
|
|||
|
{
|
|||
|
[Test]
|
|||
|
public void GetReaders()
|
|||
|
{
|
|||
|
Hardware hardware = new Hardware();
|
|||
|
string[] readers = hardware.GetReaders();
|
|||
|
|
|||
|
Console.WriteLine("Readers detected: {0}", readers.Length);
|
|||
|
|
|||
|
if(readers.Length > 0)
|
|||
|
{
|
|||
|
Console.WriteLine("List of ReaderIDs:");
|
|||
|
foreach (string readerID in readers)
|
|||
|
{
|
|||
|
Console.WriteLine("{0}", readerID);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[TestCase("")]
|
|||
|
public void Connect(string readerID)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|