예제 #1
0
        private Organisation(OrganisationType organisationType, string tradingName)
        {
            Guard.ArgumentNotNull(() => organisationType, organisationType);
            Guard.ArgumentNotNullOrEmpty(() => tradingName, tradingName);

            OrganisationType   = organisationType;
            TradingName        = tradingName;
            OrganisationStatus = OrganisationStatus.Incomplete;
        }
예제 #2
0
        private Organisation(OrganisationType organisationType, string tradingName)
        {
            Guard.ArgumentNotNull(() => organisationType, organisationType);
            Guard.ArgumentNotNullOrEmpty(() => tradingName, tradingName);

            OrganisationType = organisationType;
            TradingName = tradingName;
            OrganisationStatus = OrganisationStatus.Incomplete;
        }
예제 #3
0
        private Organisation(OrganisationType organisationType, string companyName, string companyRegistrationNumber = null, string tradingName = null)
        {
            Guard.ArgumentNotNull(() => organisationType, organisationType);
            Guard.ArgumentNotNullOrEmpty(() => companyName, companyName);

            OrganisationType   = organisationType;
            OrganisationStatus = OrganisationStatus.Incomplete;
            Name = companyName;
            CompanyRegistrationNumber = companyRegistrationNumber;
            TradingName = tradingName;
        }
예제 #4
0
        private Organisation(OrganisationType organisationType, string companyName, string companyRegistrationNumber, string tradingName = null)
        {
            Guard.ArgumentNotNull(() => organisationType, organisationType);
            Guard.ArgumentNotNullOrEmpty(() => companyName, companyName);
            Guard.ArgumentNotNullOrEmpty(() => companyRegistrationNumber, companyRegistrationNumber);

            OrganisationType = organisationType;
            OrganisationStatus = OrganisationStatus.Incomplete;
            Name = companyName;
            CompanyRegistrationNumber = companyRegistrationNumber;
            TradingName = tradingName;
        }
예제 #5
0
        public void UpdateOrganisationTypeDetails(string companyName, string companyRegNumber,
                                                  string tradingName, OrganisationType organisationType)
        {
            Guard.ArgumentNotNull(() => organisationType, organisationType);
            if (organisationType == OrganisationType.SoleTraderOrIndividual)
            {
                Guard.ArgumentNotNullOrEmpty(() => companyName, companyName);
                Name = companyName;
            }
            else if (organisationType == OrganisationType.Partnership)
            {
                Guard.ArgumentNotNullOrEmpty(() => tradingName, tradingName);
            }
            else if (organisationType == OrganisationType.RegisteredCompany)
            {
                Guard.ArgumentNotNullOrEmpty(() => companyName, companyName);
                Guard.ArgumentNotNullOrEmpty(() => companyRegNumber, companyRegNumber);
                Name = companyName;
                CompanyRegistrationNumber = companyRegNumber;
            }

            OrganisationType = organisationType;
            TradingName      = tradingName;
        }
예제 #6
0
        public void UpdateOrganisationTypeDetails(string companyName, string companyRegNumber,
            string tradingName, OrganisationType organisationType)
        {
            Guard.ArgumentNotNull(() => organisationType, organisationType);
            if (organisationType == OrganisationType.SoleTraderOrIndividual)
            {
                Guard.ArgumentNotNullOrEmpty(() => tradingName, tradingName);
            }
            else if (organisationType == OrganisationType.Partnership)
            {
                Guard.ArgumentNotNullOrEmpty(() => tradingName, tradingName);
            }
            else if (organisationType == OrganisationType.RegisteredCompany)
            {
                Guard.ArgumentNotNullOrEmpty(() => companyName, companyName);
                Guard.ArgumentNotNullOrEmpty(() => companyRegNumber, companyRegNumber);
                Name = companyName;
                CompanyRegistrationNumber = companyRegNumber;
            }

            OrganisationType = organisationType;
            TradingName = tradingName;
        }