public CensusDTO(StateCodeDAO stateCodeDao) { this.serialNumber = stateCodeDao.serialNumber; this.stateName = stateCodeDao.stateName; this.tin = stateCodeDao.tin; this.stateCode = stateCodeDao.stateCode; }
public void GiventheStateCodeCSVFile_correct_but_type_incorrect_Returns_custom_Exception() { StateCodeDAO matches = new StateCodeDAO(); string filepath = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\StateCode.csv"; Assert.AreEqual("File Contains Invalid Records", matches.CSVStatesCode(filepath)); }
public void GiventheStatesCodeWhenAnalyseShouldRecordNumberOfRecordmatches() { StateCodeDAO matches = new StateCodeDAO(); string filepath = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\StateCode.csv"; Assert.AreEqual("38", matches.CSVStatesCode(filepath)); }
public void Given_the_StateCode_CSV_File_incorrect_Returns_custom_Exception() { StateCodeDAO matches = new StateCodeDAO(); string filepath = @"C:\Users\The Daddy\source\repos\IndianStatesCensus\IndianStatesCensus\StateCode.txt"; Assert.AreEqual("There is No Such Files", matches.CSVStatesCode(filepath)); }
public CensusDTO(StateCodeDAO stateCodeDAO) { this.srNo = stateCodeDAO.srNo; this.stateName = stateCodeDAO.stateName; this.tin = stateCodeDAO.tin; this.stateCode = stateCodeDAO.stateCode; }