private static ChemicalComposition GetChemicalComposition(Draft.ImportNotification notification) { return(new ChemicalComposition { Composition = notification.ChemicalComposition.Composition }); }
private static WasteOperation GetWasteOperation(Draft.ImportNotification notification) { return(new WasteOperation { OperationCodes = notification.WasteOperation.OperationCodes, TechnologyEmployed = notification.WasteOperation.TechnologyEmployed }); }
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 static IntendedShipment GetIntendedShipment(Draft.ImportNotification notification) { return(new IntendedShipment { TotalShipments = notification.Shipment.TotalShipments, Start = notification.Shipment.StartDate, End = notification.Shipment.EndDate, Quantity = notification.Shipment.Quantity, Units = notification.Shipment.Unit }); }
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 }); }
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()); }
private static bool?GetFacilityPreconsent(Draft.ImportNotification notification) { return(notification.Preconsented.AllFacilitiesPreconsented); }