private void Test(DirectionalMovementCalculator.Type type, Dictionary<DateTime, decimal> expectedResult)
        {
            var datapoints = this.quotes.Select(DataPoints.CreateFromQuote);
            var calculator = new DirectionalMovementCalculator(datapoints, type);
            var result = calculator.CalculateAsync().Result;

            Assert.AreEqual(expectedResult, result);
        }
        public void CalculateFromDateTest()
        {
            var expectedResult = new Dictionary<DateTime, decimal>
                {
                    {DateTime.Today.AddDays(3), 0.3m},
                };

            var datapoints = this.quotes.Select(DataPoints.CreateFromQuote);
            var calculator = new DirectionalMovementCalculator(datapoints, DirectionalMovementCalculator.Type.Minus);
            var result = calculator.CalculateAsync(DateTime.Today.AddDays(3)).Result;

            Assert.AreEqual(expectedResult, result);
        }