/// <summary> /// Initializes a new instance of the <see cref="APSUser"/> class. /// </summary> /// <param name="StatementId">Statement identifier.</param> /// <param name="StatementCommonFields">Common field for all statements.</param> /// <param name="StatementType">Identifies the what type for statements this is</param> /// <param name="SpecificFields">Specific Fields allocated to statement based on statement type</param> /// <exception cref="System.ArgumentNullException"></exception> public Statement(StatementId statementId, StatementCommonFields statementCommonFields, StatementType statementType, StatementSpecificFields statementSpecificFields, APSUser apsuser, BillingAccount billingAccount) { if (statementId != null && statementCommonFields != null && statementType != null && statementSpecificFields != null && apsuser != null && billingAccount != null) { this._statementId = statementId; this._statementCommonFields = statementCommonFields; this._statementType = statementType; this._statementSpecificFields = statementSpecificFields; this._apsuser = apsuser; this._billingAccount = billingAccount; } else { throw new ArgumentNullException(); } }
/// <summary> /// Entities compare by identity, not by attributes. /// </summary> /// <param name="other">The other entity.</param> /// <returns> /// true if the identities are the same, regardles of other attributes. /// </returns> public virtual bool SameIdentityAs(Statement other) { return(StatementId.SameValueAs(other._statementId)); }
public async Task <Statement> GetSpecificStatement(StatementId StatementId) { //Gets a specific statement //code logic return null for now return(null); }