예제 #1
0
        public async Task TestMethod1()
        {
            mandateMethod = new FundMethod();
            var result = await mandateMethod.GetPortfolio();

            result.Should().NotBeNull();
        }
예제 #2
0
        public async Task TestMethod()
        {
            mandateMethod = new FundMethod();
            var result = await mandateMethod.ReadFundOfMandatesFile();

            result.Should().NotBeNull();
        }
예제 #3
0
        public async Task TestMethod2()
        {
            mandateMethod = new FundMethod();
            var fund = await mandateMethod.ReadFundOfMandatesFile();

            var portFolio = await mandateMethod.GetPortfolio();

            if (fund != null && portFolio != null)
            {
                for (int i = 0; i < portFolio.Positions.Count; i++)
                {
                    foreach (var mandate in fund.FundsOfMandates)
                    {
                        portFolio.Positions[i] = await mandateMethod.GetCalculatedMandates(portFolio.Positions[i], mandate);
                    }
                }
            }
            portFolio.Should().NotBeNull();
        }
예제 #4
0
 public PortfolioController(IFundsOfMandates fundObj)
 {
     fundMethod = fundObj;
 }