Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
ProductRepositoryMock
C# Class ProductRepositoryMock, code
Inheritance:
IRepository
显示文件
Open project: shendongnian/code
Class Usage Examples
Public Methods
Method
Description
Add
(
product
) :
void
Get
(
int
id
) :
Product
GetAll
( ) :
IEnumerable
ProductRepositoryMock
( )
Update
(
product
) :
void
Private Methods
Method
Description
GetNewId
( ) :
int
Method Details
Add()
public
method
public
Add
(
product
) :
void
return
void
Get()
public
method
public
Get
(
int
id
) :
Product
id
int
return
Product
GetAll()
public
method
public
GetAll
( ) :
IEnumerable
return
IEnumerable
ProductRepositoryMock()
public
method
public
ProductRepositoryMock
( )
Update()
public
method
public
Update
(
product
) :
void
return
void