Esempio n. 1
0
 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());
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void CleanUp()
 {
     _csvReaderForPerson = null;
     GC.Collect();
 }