Beispiel #1
0
        public void TestConstructor_TransactionLogTypeBatchDetailProcessRecordDependent()
        {
            var participantId = 10;
            var personId      = 20;

            var userDefinedA = participantId.ToString();
            var userDefinedB = "B" + personId.ToString();

            var dependent = new TransactionLogTypeBatchDetailProcessRecordDependent
            {
                UserDefinedA = userDefinedA,
                UserDefinedB = userDefinedB
            };

            var key = new ParticipantSevisKey(dependent);

            Assert.AreEqual(personId, key.PersonId);
            Assert.AreEqual(participantId, key.ParticipantId);
        }
 /// <summary>
 /// Creates a new ParticipantSevisKey with the given transaction log batch process depeendent record.
 /// </summary>
 /// <param name="transactionLog">The sevis transaction log.</param>
 public ParticipantSevisKey(TransactionLogTypeBatchDetailProcessRecordDependent record)
     : this(record.UserDefinedA, record.UserDefinedB)
 {
     Contract.Requires(record != null, "The record must not be null.");
 }