Esempio n. 1
0
        public MemberUpload(
            Guid organisationId,
            string data,
            List <MemberUploadError> errors,
            decimal totalCharges,
            int?complianceYear,
            Scheme scheme,
            string fileName,
            string userId        = null,
            bool hasAnnualCharge = false)
        {
            Guard.ArgumentNotNull(() => scheme, scheme);

            OrganisationId = organisationId;
            Scheme         = scheme;
            Errors         = errors;
            IsSubmitted    = false;
            TotalCharges   = totalCharges;
            ComplianceYear = complianceYear;
            RawData        = new MemberUploadRawData()
            {
                Data = data
            };
            CreatedById         = userId;
            FileName            = fileName;
            HasAnnualCharge     = hasAnnualCharge;
            ProducerSubmissions = new List <ProducerSubmission>();
        }
        public MemberUpload(
            Guid organisationId,
            Scheme scheme,
            string data,
            string fileName)
        {
            Guard.ArgumentNotNull(() => scheme, scheme);

            OrganisationId = organisationId;
            Scheme = scheme;
            Errors = new List<MemberUploadError>();
            RawData = new MemberUploadRawData() { Data = data };
            FileName = fileName;
            ProducerSubmissions = new List<ProducerSubmission>();
        }
Esempio n. 3
0
        public MemberUpload(
            Guid organisationId,
            Scheme scheme,
            string data,
            string fileName)
        {
            Guard.ArgumentNotNull(() => scheme, scheme);

            OrganisationId = organisationId;
            Scheme         = scheme;
            Errors         = new List <MemberUploadError>();
            RawData        = new MemberUploadRawData()
            {
                Data = data
            };
            FileName            = fileName;
            ProducerSubmissions = new List <ProducerSubmission>();
        }
        public MemberUpload(
            Guid organisationId,
            string data,
            List<MemberUploadError> errors,
            decimal totalCharges,
            int? complianceYear,
            Scheme scheme,
            string fileName,
            string userId = null)
        {
            Guard.ArgumentNotNull(() => scheme, scheme);

            OrganisationId = organisationId;
            Scheme = scheme;
            Errors = errors;
            IsSubmitted = false;
            TotalCharges = totalCharges;
            ComplianceYear = complianceYear;
            RawData = new MemberUploadRawData() { Data = data };
            CreatedById = userId;
            FileName = fileName;
            ProducerSubmissions = new List<ProducerSubmission>();
        }