} // CreateJsonError public HmrcManualAccountManager( bool hideRealError, CustomerRepository customers, DatabaseDataHelper helper, MarketPlaceRepository mpTypes, CGMPUniqChecker mpChecker, IWorkplaceContext context ) { if (hmrcVendorInfo == null) { lock (lockVendorInfo) { if (hmrcVendorInfo == null) { hmrcVendorInfo = Configuration.Instance.GetVendorInfo("HMRC"); } } // lock } // if lock (lockVendorInfo) { this.vendorInfo = hmrcVendorInfo; } // lock this.hideRealError = hideRealError; this.customers = customers; this.databaseHelper = helper; this.mpTypes = mpTypes; this.uniquenessChecker = mpChecker; this.context = context; this.serviceClient = new ServiceClient(); } // constructor
public UploadHmrcController( DatabaseDataHelper helper, MarketPlaceRepository mpTypes, CGMPUniqChecker mpChecker, CustomerRepository customers, IWorkplaceContext context ) { this.vatAccountManager = new HmrcManualAccountManager( false, customers, helper, mpTypes, mpChecker, context ); } // constructor