C# Class Tests.ValueObjects.DateOfBirth

Afficher le fichier Open project: AdrianFreemantle/DDD Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public DateOfBirth ( System.DateTime dateOfBith ) : System
dateOfBith System.DateTime
Résultat System

Equals() public méthode

public Equals ( DateOfBirth other ) : bool
other DateOfBirth
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetAgeAtDate() public méthode

public GetAgeAtDate ( System.DateTime date ) : PersonAge
date System.DateTime
Résultat PersonAge

GetCurrentAge() public méthode

public GetCurrentAge ( ) : PersonAge
Résultat PersonAge

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

operator() public static méthode

public static operator ( ) : bool
Résultat bool