Inheritance: IWriter
        private FRM MapFarm(Farm farm, Dictionary<int, string> keyToIsoId, int farmIndex)
        {
            var isoFarm = new FRM
            {
                B = farm.Description,
            };
            isoFarm.A = isoFarm.GetIsoId(farmIndex);
            if (farm.GrowerId != null)
                isoFarm.I = keyToIsoId[farm.GrowerId.Value];

            keyToIsoId.Add(farm.Id.ReferenceId, isoFarm.A);
            return isoFarm;
        }
Beispiel #2
0
 public void Setup()
 {
     _frm = new FRM();
     _output = new StringBuilder();
     _xmlBuilder = XmlWriter.Create(_output);
 }