public void InitializeContext() { this.command = new ModifyXmlCommand { Solution = Mock.Of<ISolution>(), UriReferenceService = Mock.Of<IUriReferenceService>(), XmlProcessor = Mock.Of<IXmlProcessor>(), ErrorList = this.errorList.Object, CurrentElement = Mock.Of<IProductElement>(), }; }
public void InitializeContext() { this.currentElement.Setup(ce => ce.InstanceName).Returns("foo"); this.command = new ModifyXmlCommand { Solution = this.solution, UriReferenceService = this.uriService.Object, XmlProcessor = this.xmlProcessor.Object, ErrorList = this.errorList.Object, CurrentElement = this.currentElement.Object, SourcePath = "foo.xml", XmlPath = "bar", NewValue = "foo" }; }