C# Class Tests.ValueObjects.DateOfBirth

Show file Open project: AdrianFreemantle/DDD Class Usage Examples

Public Methods

Method Description
DateOfBirth ( System.DateTime dateOfBith ) : System
Equals ( DateOfBirth other ) : bool
Equals ( object obj ) : bool
GetAgeAtDate ( System.DateTime date ) : PersonAge
GetCurrentAge ( ) : PersonAge
GetHashCode ( ) : int
operator ( ) : bool

Method Details

DateOfBirth() public method

public DateOfBirth ( System.DateTime dateOfBith ) : System
dateOfBith System.DateTime
return System

Equals() public method

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

Equals() public method

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

GetAgeAtDate() public method

public GetAgeAtDate ( System.DateTime date ) : PersonAge
date System.DateTime
return PersonAge

GetCurrentAge() public method

public GetCurrentAge ( ) : PersonAge
return PersonAge

GetHashCode() public method

public GetHashCode ( ) : int
return int

operator() public static method

public static operator ( ) : bool
return bool