Пример #1
0
        public void PortfolioNotFound()
        {
            var service = new PortfolioService(null);

            var result = service.ChangeDrpParticipation(Guid.NewGuid(), true);

            result.Should().HaveNotFoundStatus();
        }
Пример #2
0
        public void ChangeDrpParticipation()
        {
            var portfolio = PortfolioTestCreator.CreateDefaultPortfolio();

            var service = new PortfolioService(portfolio);

            var result = service.ChangeDrpParticipation(PortfolioTestCreator.Stock_ARG.Id, true);

            result.Should().HaveOkStatus();
        }
Пример #3
0
        public void ChangeDrpParticipationStockNotFound()
        {
            var portfolio = PortfolioTestCreator.CreateDefaultPortfolio();

            var service = new PortfolioService(portfolio);

            var result = service.ChangeDrpParticipation(Guid.NewGuid(), true);

            result.Should().HaveNotFoundStatus();
        }