public void ShouldReturnStaticListOfPortfolios()
        {
            IFundsProcessor fundProcessor = new FundProcessor();
            var             portfolio     = new PortfolioVM
            {
                Positions = new List <PositionVM> {
                    new PositionVM {
                        Code = "NL0000287100", Name = "Henekens", Value = 12345
                    },
                    new PositionVM {
                        Code = "NL000029332", Name = "Optimix", Value = 23456
                    },
                    new PositionVM {
                        Code = "NL0000440584", Name = "DP Global", Value = 34567
                    },
                    new PositionVM {
                        Code = "NL0000440588", Name = "Rabobank core", Value = 45678
                    },
                    new PositionVM {
                        Code = "inc005", Name = "Morgan Stanley", Value = 56789
                    }
                }
            };

            fundProcessor.GetPortfolio().Should().NotBeNull().And.BeAssignableTo(typeof(PortfolioVM)).And.BeEquivalentTo(portfolio);
        }
Exemple #2
0
        public void ReturnStaticListOfPortfolios()
        {
            IFundProcessor fundProcessor = new FundProcessor();
            var            portfolio     = new PortfolioVM
            {
                Positions = new List <PositionVM>
                {
                    new PositionVM {
                        Code = "NL0000009165", Name = "Heineken", Value = 12345
                    },
                    new PositionVM {
                        Code = "NL0000287100", Name = "Optimix Mix Fund", Value = 23456
                    },
                    new PositionVM {
                        Code = "LU0035601805", Name = "DP Global Strategy L High", Value = 34567
                    },
                    new PositionVM {
                        Code = "NL0000292332", Name = "Rabobank Core Aandelen Fonds T2", Value = 45678
                    },
                    new PositionVM {
                        Code = "LU0042381250", Name = "Morgan Stanley Invest US Gr Fnd", Value = 56789
                    }
                }
            };

            fundProcessor.GetPortfolio().Should().NotBeNull().And.BeAssignableTo(typeof(PortfolioVM)).And.BeEquivalentTo(portfolio);
        }
Exemple #3
0
        public void ValidateFundOfMandatesReturnsPositionVM()
        {
            IFundProcessor        fundsProcessor = new FundProcessor();
            string                filePath       = "..\\..\\..\\TestData\\FundsOfMandatesData.xml";
            List <FundOfMandates> Result         = fundsProcessor.ReadFundOfMandateFile(filePath);
            PortfolioVM           portfolioVM    = fundsProcessor.GetPortfolio();
            PositionVM            positionVM     = null;

            positionVM = fundsProcessor.GetCalculatedMandates(portfolioVM.Positions.ElementAt(1), Result.ElementAt(1));

            positionVM.Should().NotBeNull().And.BeOfType <PositionVM>();
        }