コード例 #1
0
        public void TestGetBatchId_BatchIdIsNull()
        {
            var instance = new BatchHeaderType();

            instance.BatchID = null;
            Assert.IsNull(instance.GetBatchId());
        }
コード例 #2
0
        public void TestSetBatchId_NullValue()
        {
            var instance = new BatchHeaderType();

            instance.BatchID = "batch id";
            instance.SetBatchId(null);
            Assert.IsNull(instance.BatchID);
        }
コード例 #3
0
        public void TestGetBatchId_HasBatchId()
        {
            var expectedBatchId = BatchId.NewBatchId();
            var instance        = new BatchHeaderType();

            instance.BatchID = expectedBatchId.ToString();
            Assert.AreEqual(expectedBatchId, instance.GetBatchId());
        }
コード例 #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);
        }