public AatfDeliveryLocation CreateAatfDeliveryLocation(string approvalNumber, string facilityName) { var aatfDeliveryLocation = new AatfDeliveryLocation { Id = IntegerToGuid(GetNextId()), ApprovalNumber = approvalNumber, FacilityName = facilityName }; model.AatfDeliveryLocations.Add(aatfDeliveryLocation); return(aatfDeliveryLocation); }
public WeeeDeliveredAmount CreateWeeeDeliveredAmount(DataReturnVersion dataReturnVersion, AatfDeliveryLocation location, string obligationType, int weeeCategory, decimal tonnage) { var weeeDeliveredAmount = new WeeeDeliveredAmount { Id = IntegerToGuid(GetNextId()), AatfDeliveryLocationId = location.Id, AatfDeliveryLocation = location, ObligationType = obligationType, Tonnage = tonnage, WeeeCategory = weeeCategory }; AddWeeeDeliveredAmount(dataReturnVersion, weeeDeliveredAmount); return(weeeDeliveredAmount); }