public string Post(string document)
        {
            var bdx = new RiskBordereau
            {
                UniqueIdentifier = (new Guid()).ToString(),
                XML = "<root><data>information</data></root>"
            };

            var pipeline = new BordereauPipline();

            return(pipeline.Process(bdx).Url);
        }
示例#2
0
        public void Pipeline_Builds()
        {
            var bordereau = new RiskBordereau
            {
                UniqueIdentifier = (new Guid()).ToString(),
                XML = "<root><data>information</data></root>"
            };

            var pipeline = new BordereauPipline();
            var actual   = pipeline.Process(bordereau);

            Assert.AreEqual(true, actual.Valid);
        }