コード例 #1
0
 public void InitializeContext()
 {
     this.provider = new XmlNodeValueProvider
     {
         Solution            = Mock.Of <ISolution>(),
         UriReferenceService = Mock.Of <IUriReferenceService>(),
         XmlProcessor        = this.xmlProcessor.Object,
         CurrentElement      = Mock.Of <IProductElement>(),
     };
 }
コード例 #2
0
            public void InitializeContext()
            {
                this.currentElement.Setup(ce => ce.InstanceName).Returns("foo");

                this.provider = new XmlNodeValueProvider
                {
                    Solution            = this.solution,
                    UriReferenceService = this.uriService.Object,
                    XmlProcessor        = this.xmlProcessor.Object,
                    CurrentElement      = this.currentElement.Object,
                    SourcePath          = "foo.xml",
                    XmlPath             = "bar",
                };
            }