public void WriteToFile(DataBuilder builder)
        {
            var list = DataPoviderFactory.GetDataProvider(builder.DataType).GetRandomDataList(builder.NumberOfRecords);

            new XmlSerializer(typeof(List <BaseDataModel>)).Serialize(builder.Writer, list);
        }
        public void WriteToFile(DataBuilder builder)
        {
            var list = DataPoviderFactory.GetDataProvider(builder.DataType).GetRandomDataList(builder.NumberOfRecords);

            builder.Writer.Write(JsonConvert.SerializeObject(list));
        }