Esempio n. 1
0
        public AatfDeliveryLocation CreateAatfDeliveryLocation(string approvalNumber, string facilityName)
        {
            var aatfDeliveryLocation = new AatfDeliveryLocation
            {
                Id             = IntegerToGuid(GetNextId()),
                ApprovalNumber = approvalNumber,
                FacilityName   = facilityName
            };

            model.AatfDeliveryLocations.Add(aatfDeliveryLocation);

            return(aatfDeliveryLocation);
        }
Esempio n. 2
0
        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);
        }