public AddItemsToCartTest(IWebDriverFacade driver, IStepMapper <KeywordModel> mapper, ILogger logger, string filePath)
        {
            m_logger = logger;
            m_driver = driver;

            m_model = GetSteps(mapper, filePath);
        }
        private List <KeywordModel> GetSteps(IStepMapper <KeywordModel> mapper, string path)
        {
            try
            {
                var lines = Utils.LoadCsvFile(path);
                return(mapper.Map(lines));
            }
            catch (Exception ex)
            {
                m_logger.Log(string.Format("Data file by path {0} wasn't read. \t Exception: {1}", path, ex), LoggerLevel.Error);
            }

            return(new List <KeywordModel>());
        }
        private List <AddItemsToCartDataModel> GetData(IStepMapper <AddItemsToCartDataModel> mapper, string filePath)
        {
            var lines = Utils.LoadCsvFile(filePath);

            return(mapper.Map(lines));
        }
        public AddItemsToCartTest(IWebDriverFacade mDriver, IStepMapper <AddItemsToCartDataModel> mapper, string filePath)
        {
            this.m_driver = mDriver;

            m_dataModels = GetData(mapper, filePath);
        }