示例#1
0
        public void StateFileListLookupTest()
        {
            StateManager manager = StateManagerFactory.Create();

            StateFileLookup response = manager.ListAllStates();

            Assert.IsNotNull(response.StateList);
            Assert.IsTrue(response.Success);
        }
        public StateFileLookup ListAllStates()
        {
            StateFileLookup response = new StateFileLookup();

            response.StateList = _stateTaxRepository.GetStateTaxList();

            if (response.StateList == null)
            {
                response.Success = false;
                response.Message = "There was an error with the State Tax File. Contact IT.";
            }
            else
            {
                response.Success = true;
            }
            return(response);
        }