public void PortfolioNotFound() { var service = new PortfolioService(null); var result = service.ChangeDrpParticipation(Guid.NewGuid(), true); result.Should().HaveNotFoundStatus(); }
public void ChangeDrpParticipation() { var portfolio = PortfolioTestCreator.CreateDefaultPortfolio(); var service = new PortfolioService(portfolio); var result = service.ChangeDrpParticipation(PortfolioTestCreator.Stock_ARG.Id, true); result.Should().HaveOkStatus(); }
public void ChangeDrpParticipationStockNotFound() { var portfolio = PortfolioTestCreator.CreateDefaultPortfolio(); var service = new PortfolioService(portfolio); var result = service.ChangeDrpParticipation(Guid.NewGuid(), true); result.Should().HaveNotFoundStatus(); }