/// </inheritdoc> public void RegisterNext(IInsuranceContract nextContract) { this.nextContract = nextContract ?? throw new ArgumentNullException(nameof(IInsuranceContract)); }
/// </inheritdoc> public void RegisterNext(IInsuranceContract nextContract) { throw new InvalidOperationException("Can not set another contract after the end of chain."); }