public void CanGetAllSettings_ForAPackage()
        {
            var allSettings = new DataModel.PackageSetting[]{
                new DataModel.PackageSetting { PackageId = "one", Key = "key.one", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "one", Key = "key.two", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "one", Key = "key.three", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "two", Key = "key.one", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "two", Key = "key.two", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "two", Key = "key.three", Value = Guid.NewGuid().ToString() },
            };

            allSettings.Apply(_sut.Store);

            _sut.All("one").Count().ShouldBe(3);
            _sut.All().Count().ShouldBe(allSettings.Length);
        }
        public void CanGetADataModelByPackageIdAndKey()
        {
            var allSettings = new DataModel.PackageSetting[]{
                new DataModel.PackageSetting { PackageId = "one", Key = "key.one", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "one", Key = "key.two", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "one", Key = "key.three", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "two", Key = "key.one", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "two", Key = "key.two", Value = Guid.NewGuid().ToString() },
                new DataModel.PackageSetting { PackageId = "two", Key = "key.three", Value = Guid.NewGuid().ToString() },
            };

            allSettings.Apply(_sut.Store);

            Random rnd =new Random(allSettings.Length);
            var idx = rnd.Next(allSettings.Length);
            var expected = allSettings[idx];
            var test = _sut.Get(expected.PackageId, expected.Key);

            test.PackageId.ShouldBe(expected.PackageId);
            test.Key.ShouldBe(expected.Key);
            test.Value.ShouldBe(expected.Value);
        }