private Exporter GetExporter(Draft.ImportNotification notification)
 {
     return(new Exporter
     {
         Address = ConvertAddress(notification.Exporter.Address),
         Name = notification.Exporter.BusinessName,
         Contact = Contact.FromDraftContact(notification.Exporter.Contact)
     });
 }
 private Producer GetProducer(Draft.ImportNotification notification)
 {
     return(new Producer
     {
         Address = ConvertAddress(notification.Producer.Address),
         Name = notification.Producer.BusinessName,
         Contact = Contact.FromDraftContact(notification.Producer.Contact),
         AreMultiple = notification.Producer.AreMultiple
     });
 }
 private Importer GetImporter(Draft.ImportNotification notification)
 {
     return(new Importer
     {
         Address = ConvertAddress(notification.Importer.Address),
         BusinessType = notification.Importer.Type,
         Contact = Contact.FromDraftContact(notification.Importer.Contact),
         Name = notification.Importer.BusinessName,
         RegistrationNumber = notification.Importer.RegistrationNumber
     });
 }
Exemple #4
0
 private Producer GetProducer(Draft.ImportNotification notification)
 {
     return(new Producer
     {
         Address = ConvertAddress(notification.Producer.Address),
         BusinessType = notification.Producer.Type,
         Name = notification.Producer.BusinessName,
         Contact = Contact.FromDraftContact(notification.Producer.Contact),
         AreMultiple = notification.Producer.AreMultiple,
         RegistrationNumber = notification.Producer.RegistrationNumber
     });
 }
        private IList <Facility> GetFacilities(Draft.ImportNotification notification)
        {
            if (notification.Facilities.Facilities == null)
            {
                return(new Facility[0]);
            }

            return(notification.Facilities.Facilities.Select(f =>
                                                             new Facility
            {
                Address = ConvertAddress(f.Address),
                Contact = Contact.FromDraftContact(f.Contact),
                Name = f.BusinessName,
                BusinessType = f.Type,
                RegistrationNumber = f.RegistrationNumber,
                IsActualSite = f.IsActualSite
            }).ToArray());
        }