public void TestLoadAllModelPortfolio()
        {
            IModelPortfolioService modelPortfolio = null;

            List <ModelPortfolio> modelPortfolios = modelPortfolio.GetAllModelPortfolios();

            Assert.Equals(modelPortfolios.Count, 1);
        }
Example #2
0
        public async Task <IActionResult> Get()
        {
            try {
                return(Ok(_modelPortfolioService.GetAllModelPortfolios()));
            }
            catch

            {
                return(NotFound());
            }
        }