public IEnumerable <ScannedProducts> Scan(ItemstoScan ItemstoScan) { if (ItemstoScan == null || ItemstoScan.Items == null) { return(Enumerable.Empty <ScannedProducts>()); } return(ItemstoScan.Items.groupby()); }
public void ScanService_return_list_of_items(string inputData) { //given var expected = typeof(IEnumerable <ScannedProducts>); ItemstoScan items = new ItemstoScan(inputData); var sut = new ScanService(); //when var actual = sut.Scan(items); //then Assert.IsAssignableFrom(expected, actual); }