C# Class Gringotts.Domain.Investor

显示文件 Open project: jskswamy/Gringotts Class Usage Examples

Public Methods

Method Description
AcceptOffer ( Offer offer ) : void
AcceptReturn ( Amount dividend ) : void
AcceptSurplus ( Amount surplus ) : void
AddInvestmentToPortfolio ( Investment investment ) : void
Equals ( Investor other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Investor ( ) : System
Investor ( Name name, GringottsDate date, Amount amount ) : System

Private Methods

Method Description
Pay ( Amount amount ) : void

Method Details

AcceptOffer() public method

public AcceptOffer ( Offer offer ) : void
offer Offer
return void

AcceptReturn() public method

public AcceptReturn ( Amount dividend ) : void
dividend Amount
return void

AcceptSurplus() public method

public AcceptSurplus ( Amount surplus ) : void
surplus Amount
return void

AddInvestmentToPortfolio() public method

public AddInvestmentToPortfolio ( Investment investment ) : void
investment Investment
return void

Equals() public method

public Equals ( Investor other ) : bool
other Investor
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Investor() public method

public Investor ( ) : System
return System

Investor() public method

public Investor ( Name name, GringottsDate date, Amount amount ) : System
name Name
date GringottsDate
amount Amount
return System