public void GetHoldingsInDateRange()
        {
            var portfolio = PortfolioTestCreator.CreateDefaultPortfolio();

            var service = new PortfolioHoldingService(portfolio);

            var result = service.GetHoldings(new DateRange(new Date(2000, 01, 01), new Date(2003, 01, 01)));

            result.Result.Should().BeEquivalentTo(new[]
            {
                new RestApi.Portfolios.Holding()
                {
                    Stock    = PortfolioTestCreator.Stock_ARG,
                    Units    = 200,
                    Value    = 198.00m,
                    Cost     = 239.90m,
                    CostBase = 239.90m,
                },
                new RestApi.Portfolios.Holding()
                {
                    Stock    = PortfolioTestCreator.Stock_WAM,
                    Units    = 200,
                    Value    = 254.00m,
                    Cost     = 259.95m,
                    CostBase = 259.95m,
                }
            });
        }
        public void PortfolioNotFound()
        {
            var service = new PortfolioHoldingService(null);

            var result = service.GetHoldings(new Date(2000, 01, 01));

            result.Should().HaveNotFoundStatus();
        }