public void Test05AddNewSqlErrorDictItemOk() { //SETUP //ATTEMPT GenericServicesConfig.ClearSqlErrorDict(); GenericServicesConfig.AddToSqlErrorDict(-1, "A test"); //VERIFY GenericServicesConfig.SqlErrorDict.Count.ShouldEqual(1); GenericServicesConfig.SqlErrorDict[-1].ShouldEqual("A test"); }
private void RestoreSqlErrorTextDict() { _rememberDefaultSqlErrorTextDict.ForEach(x => GenericServicesConfig.AddToSqlErrorDict(x.Key, x.Value)); }