public void RunReaderKeyCommandTest() { var Testresult = ContextHandler.Instance; IReadOnlyList <string> myreaders = Testresult.ListReaders(); string text = myreaders[0]; var TestReader = new SmartCardReader(text); string TestKey = "FFFFFFFFFFFF"; string expectedApdu = "FF82200106FFFFFFFFFFFF"; var loadkey = new MifareAPI.LoadMifareKey(); loadkey.Run(TestReader.PcscReaderName, TestKey); Assert.AreEqual(expectedApdu, loadkey.MifareAPDU); }
public static void runLoadkey() { var key = new MifareAPI.LoadMifareKey(); key.Run(WebReader.PcscReaderName, "FFFFFFFFFFFF"); }