public void ShouldAddAndUpdateValue() { _storage.Add(1, "1"); _storage.Update(1, "2"); var result = _storage.GetValue(1); Assert.Equal("2", result); }
public void UpdateOrAddConfig(SqlMapConfig updated) { if (_sqlMapConfigs.TryGetValue(updated.Name, out var existing)) { _sqlMapConfigs.Update(updated.Name, updated); } else { _sqlMapConfigs.Add(updated.Name, updated); } }