public IEnumerable <Sale> GetSales(Stream postedFile) { if (postedFile != null) { return(_common.GetParsedSales(postedFile)); } return(null); }
public void GetParsedSales_Empty_ReturnEmptyList() { //Arrange List <string> emptyList = new List <string> { }; _dalSale.Setup(fr => fr.GetParsedSalesFromCSV(It.IsAny <Stream>())).Returns(emptyList); //Act var result = _blCommon.GetParsedSales(It.IsAny <Stream>()); //Assert Assert.That(result, Is.Empty); }