Esempio n. 1
0
        public void Create_WithCommitmentTypeId_ReturnsInstance()
        {
            var commitmentTypeIndication = CommitmentTypeIndication.Create(new Oid(Oids.CommitmentTypeIdentifierProofOfOrigin));

            Assert.Equal(Oids.CommitmentTypeIdentifierProofOfOrigin, commitmentTypeIndication.CommitmentTypeId.Value);
            Assert.Null(commitmentTypeIndication.Qualifiers);
        }
Esempio n. 2
0
        public void Create_WhenCommitmentTypeIdNull_Throws()
        {
            var exception = Assert.Throws <ArgumentNullException>(
                () => CommitmentTypeIndication.Create(commitmentTypeId: null));

            Assert.Equal("commitmentTypeId", exception.ParamName);
        }