Ejemplo n.º 1
0
        public void FibonacciNumbersRedisCache()
        {
            FibonacciNumbers fibonacci = new FibonacciNumbers(new FibonacciRedisCache("localhost"));

            for (int i = 0; i < expectedValues.Length; i++)
            {
                Assert.AreEqual(expectedValues[i], fibonacci.Get(i));
            }
        }
Ejemplo n.º 2
0
        public void FibonacciNumbersMemoryCache()
        {
            FibonacciNumbers fibonacci = new FibonacciNumbers(new FibonacciMemoryCache());

            for (int i = 0; i < expectedValues.Length; i++)
            {
                Assert.AreEqual(expectedValues[i], fibonacci.Get(i));
            }
        }
Ejemplo n.º 3
0
 public void FibonacciNumbersRedisCacheBig()
 {
     FibonacciNumbers fibonacci = new FibonacciNumbers(new FibonacciRedisCache("localhost"));
     var a = fibonacci.Get(100000);
 }