C# Class NUnit.Samples.Money.Money

A simple Money.
Inheritance: IMoney
Show file Open project: mvba/ExcelMapper Class Usage Examples

Public Methods

Method Description
Add ( IMoney m ) : IMoney

Adds a money to this money. Forwards the request to the AddMoney helper.

AddMoney ( Money m ) : IMoney
AddMoneyBag ( MoneyBag s ) : IMoney
Equals ( Object anObject ) : bool
GetHashCode ( ) : int
Money ( int amount, String currency ) : System

Constructs a money from the given amount and currency.

Multiply ( int factor ) : IMoney
Negate ( ) : IMoney
Subtract ( IMoney m ) : IMoney
ToString ( ) : String

Method Details

Add() public method

Adds a money to this money. Forwards the request to the AddMoney helper.
public Add ( IMoney m ) : IMoney
m IMoney
return IMoney

AddMoney() public method

public AddMoney ( Money m ) : IMoney
m Money
return IMoney

AddMoneyBag() public method

public AddMoneyBag ( MoneyBag s ) : IMoney
s MoneyBag
return IMoney

Equals() public method

public Equals ( Object anObject ) : bool
anObject Object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Money() public method

Constructs a money from the given amount and currency.
public Money ( int amount, String currency ) : System
amount int
currency String
return System

Multiply() public method

public Multiply ( int factor ) : IMoney
factor int
return IMoney

Negate() public method

public Negate ( ) : IMoney
return IMoney

Subtract() public method

public Subtract ( IMoney m ) : IMoney
m IMoney
return IMoney

ToString() public method

public ToString ( ) : String
return String