Ejemplo 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>();
        }
Ejemplo n.º 2
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>();
        }
Ejemplo 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>();
        }
Ejemplo n.º 4
0
        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>();
        }