C# Class ProductRepositoryMock, code

Inheritance: IRepository
Afficher le fichier Open project: shendongnian/code Class Usage Examples

Méthodes publiques

Méthode Description
Add ( product ) : void
Get ( int id ) : Product
GetAll ( ) : IEnumerable
ProductRepositoryMock ( )
Update ( product ) : void

Private Methods

Méthode Description
GetNewId ( ) : int

Method Details

Add() public méthode

public Add ( product ) : void
Résultat void

Get() public méthode

public Get ( int id ) : Product
id int
Résultat Product

GetAll() public méthode

public GetAll ( ) : IEnumerable
Résultat IEnumerable

ProductRepositoryMock() public méthode

Update() public méthode

public Update ( product ) : void
Résultat void