Example #1
0
        public void CheckStateOk(string st)
        {
            switch (st.ToUpper())
            {
            case "FL":
            case "GA":
            case "NC":
            case "SC":
            case "VA":
                state = st.ToUpper();
                break;

            default:
                TestOfStateException ex =
                    new TestOfStateException("State not Part of Atlantic ICW");
                throw ex;
            }
        }
Example #2
0
 public void CheckStateOk(string st)
 {
     switch(st.ToUpper())
     {
         case "FL": 
         case "GA":
         case "NC":
         case "SC":
         case "VA":
             state = st.ToUpper();
             break;
         default:
             TestOfStateException ex =
                 new TestOfStateException("State not Part of Atlantic ICW" );
             throw ex;
     }
 }