Ejemplo n.º 1
0
 /// <summary>
 /// Read Portfolio.
 /// </summary>
 /// <param name="fileName"></param>
 private void ReadPortfolio(string fileName)
 {
     Portfolio portfolio;
     var xmlReader = new XmlFileReader(fileName);
     xmlReader.ReadPortfolio(out portfolio);
     this.portfolioViewModel = new TViewPortfolioViewModel(portfolio);
     this.RootElementCollection.Add(this.portfolioViewModel);
     this.CreateOrder();
 }
Ejemplo n.º 2
0
 public void TestReadPortfolioValidElementCount()
 {
     this.xmlReader = new XmlFileReader(this.xmlPath);
     Portfolio portfolio;
     xmlReader.ReadPortfolio(out portfolio);
     Assert.That(portfolio.ProductGroups.Count,Is.EqualTo(2));
 }