Esempio n. 1
0
        public void TestGetBatchId_BatchIdIsNull()
        {
            var instance = new BatchHeaderType();

            instance.BatchID = null;
            Assert.IsNull(instance.GetBatchId());
        }
Esempio n. 2
0
        public void TestSetBatchId_NullValue()
        {
            var instance = new BatchHeaderType();

            instance.BatchID = "batch id";
            instance.SetBatchId(null);
            Assert.IsNull(instance.BatchID);
        }
Esempio n. 3
0
        public void TestGetBatchId_HasBatchId()
        {
            var expectedBatchId = BatchId.NewBatchId();
            var instance        = new BatchHeaderType();

            instance.BatchID = expectedBatchId.ToString();
            Assert.AreEqual(expectedBatchId, instance.GetBatchId());
        }
Esempio n. 4
0
        public void TestSetBatchId()
        {
            var expectedBatchId = BatchId.NewBatchId();
            var instance        = new BatchHeaderType();

            instance.BatchID = "batch id";
            instance.SetBatchId(expectedBatchId);
            Assert.AreEqual(expectedBatchId.ToString(), instance.BatchID);
        }