private void ProcessProduct(Product product, AsinInputItemShort asinInputItem)
 {
     if (DataToGet.Equals("Dimension", StringComparison.CurrentCultureIgnoreCase))
     {
         product.WriteDimensionSeparatedFragment(StartRange.ToString("yyyy-MM-dd"),
         asinInputItem.Account, asinInputItem.SellerSku, asinInputItem.Asin, asinInputItem.AmzRstListPrice, _productInfoCsv, "\t");
     }
     else
     {
         product.WriteRankSeparatedFragment(StartRange.ToString("yyyy-MM-dd"),
         asinInputItem.Account, asinInputItem.SellerSku, asinInputItem.Asin, asinInputItem.AmzRstListPrice, _productInfoCsv, "\t");
     }
 }
        private void LoadAsinList()
        {
            _asinInputList = new List<AsinInputItemShort>();

            using (StreamReader reader = new StreamReader(@"C:\Users\Rich\Dropbox\Documents\RedSkyTrader\Working Versions\AsinWorkDimensions\AsinList.txt"))
            {
                var firstline = reader.ReadLine();
                if (firstline != null)
                {
                    string[] firstLineParts = firstline.Split(new[] { '\t' });
                    if (firstLineParts.Length != 3)
                    {
                        throw new ApplicationException("Asin input file incorrect.");
                    }
                }

                while (!reader.EndOfStream)
                {
                    string readLine = reader.ReadLine();
                    if (readLine == null || readLine.StartsWith("#"))
                        continue;

                    string[] lineParts = readLine.Split(new[] { '\t' });
                    if (lineParts.Length != 3)
                    {
                        throw new ApplicationException("Asin input file incorrect.");
                    }

                    AsinInputItemShort asinInputItem = new AsinInputItemShort()
                    {
                        Account = "AmzJk",
                        SellerSku = lineParts[0],
                        Asin = lineParts[1],
                        AmzRstListPrice = lineParts[2],
                    };

                    if (GetMatchingSkuForAsin(asinInputItem.Asin) == null)
                    {
                        _asinInputList.Add(asinInputItem);
                    }
                }
            }
        }