コード例 #1
0
        public void SetUp()
        {
            keyRepo = new TestKeyRepository();
            service = new SignatureService(keyRepo);

            // Create a bundle
            var signatureHeader = new IssuerSignatureHeader(header);
            var ticketBundle = new TicketBundle(payload);

            issuerSignedTicketBundle = new IssuerSignedTicketBundle(ticketBundle);
            issuerSignedTicketBundle.Header = signatureHeader;
            issuerSignedTicketBundle.Signature = signature;
        }
コード例 #2
0
ファイル: MtbHandler.cs プロジェクト: staryd/MobileTicket
 public MtbHandler(IKeyRepository keyRepository)
 {
     _keyRepository = keyRepository;
     _service = new SignatureService(_keyRepository);
 }