示例#1
0
 public IEnumerable <Sale> GetSales(Stream postedFile)
 {
     if (postedFile != null)
     {
         return(_common.GetParsedSales(postedFile));
     }
     return(null);
 }
示例#2
0
        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);
        }