public void buildWithSpecifiedValues()
        {

            DocumentPackageAttributesBuilder documentPackageAttributesBuilder = new DocumentPackageAttributesBuilder()
                                        .withAttribute("First Name", "Adam")
                                        .withAttribute("Last Name", "Smith");
            DocumentPackageAttributes documentPackageAttributes = documentPackageAttributesBuilder.build();

            Assert.AreEqual("Adam", documentPackageAttributes.Contents["First Name"]);
            Assert.AreEqual("Smith", documentPackageAttributes.Contents["Last Name"]);

        }
Exemple #2
0
 public PackageBuilder WithAttributes(DocumentPackageAttributesBuilder attributesBuilder)
 {
     return(WithAttributes(attributesBuilder.Build()));
 }
 public PackageBuilder WithAttributes(DocumentPackageAttributesBuilder attributesBuilder)
 {
     return WithAttributes( attributesBuilder.Build() );
 }