コード例 #1
0
        public void WriteToFile(DataBuilder builder)
        {
            var list = DataPoviderFactory.GetDataProvider(builder.DataType).GetRandomDataList(builder.NumberOfRecords);

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

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