public void GetSourceDetails_OnBlankInput_ReturnInputSource() { //Arrange BanktransactionsRepo repo = new BanktransactionsRepo(); //Act InputDataSource inputSource = repo.GetSourceDetails(); //Assert Assert.IsNotNull(inputSource.InputDataSourceName); Assert.AreEqual(DataSource.FileSystem, inputSource.InputDataSourceType); }
public void GetSourceDetails_OnNonBlankInput_ReturnInputSource() { //Arrange BanktransactionsRepo repo = new BanktransactionsRepo { FolderName = @"C:\Temp" }; //Act InputDataSource inputSource = repo.GetSourceDetails(); //Assert Assert.AreEqual(@"C:\Temp", inputSource.InputDataSourceName); Assert.AreEqual(DataSource.FileSystem, inputSource.InputDataSourceType); }