public void GetKeys_WhenNotEmpty_ShouldReturnAllExistingKeys() { var keys = _store.GetKeys().ToList(); Assert.AreEqual(1, keys.Count); Assert.AreEqual("fruit", keys[0]); }
private void SetParameters(IDbCommand command, IKeyValueStore parameters) { if (parameters == null) { return; } foreach (var key in parameters.GetKeys()) { var dbParameter = command.CreateParameter(); dbParameter.ParameterName = key; dbParameter.Value = parameters.Read(key); command.Parameters.Add(dbParameter); } }
public ICollection <string> GetKeys() { return(_store.GetKeys()); }