public void Setup() { // AAA Syntax : Arrange, Act, Assert // Arrange // app start path differs from project to project. // There is no need to mock. Because these test are not going to complete anyway. // There is a condition check which throws exception if path is not valid. _csvReaderForPerson = new CsvReaderForPerson(new StreetNameExtractor()); }
public void Setup() { // AAA Syntax : Arrange, Act, Assert // Arrange // app start path differs from project to project. _appStartupPath = AppDomain.CurrentDomain.BaseDirectory + @"\"; var streetAddressExtractor = new StreetNameExtractor(); _csvReaderForPerson = new CsvReaderForPerson(streetAddressExtractor); }
public void CleanUp() { _csvReaderForPerson = null; GC.Collect(); }