Ejemplo n.º 1
0
        public void Test05AddNewSqlErrorDictItemOk()
        {
            //SETUP

            //ATTEMPT
            GenericServicesConfig.ClearSqlErrorDict();
            GenericServicesConfig.AddToSqlErrorDict(-1, "A test");

            //VERIFY
            GenericServicesConfig.SqlErrorDict.Count.ShouldEqual(1);
            GenericServicesConfig.SqlErrorDict[-1].ShouldEqual("A test");
        }
Ejemplo n.º 2
0
 private void RestoreSqlErrorTextDict()
 {
     _rememberDefaultSqlErrorTextDict.ForEach(x => GenericServicesConfig.AddToSqlErrorDict(x.Key, x.Value));
 }