private Organisation(OrganisationType organisationType, string tradingName) { Guard.ArgumentNotNull(() => organisationType, organisationType); Guard.ArgumentNotNullOrEmpty(() => tradingName, tradingName); OrganisationType = organisationType; TradingName = tradingName; OrganisationStatus = OrganisationStatus.Incomplete; }
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; }
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; }
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; }
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; }