public void Create()
        {
            var cache = A.Fake<ICache>();
            var settings = new Dictionary<string, string>
            {
            };

            var obj = new RandomProxyProvider(cache, settings);

            Assert.IsNotNull(obj);
        }
        public void Get()
        {
            var data = new List<object[]> { new object[] { "1" }, new object[] { "2" }, new object[] { "3" } };
            var cache = A.Fake<ICache>();
            var settings = new Dictionary<string, string> {
                { Keys.Entity, "test" },
                { Keys.Property, "test" },
            };

            A.CallTo(() => cache.Pick<IList<object[]>>(A<string>.Ignored)).Returns(data);

            var obj = new RandomProxyProvider(cache, settings);

            var result = obj.GetAll();
            var j = 9;
            foreach (var t in result)
            {
                Assert.True(data.Select(x => (string)x[0]).Contains((string)t[0]));
                if (j-- == 0) break;
            }
        }