C# Class Restbucks.Service.Infrastructure.InMemoryOrderRepository

Inheritance: IOrderRepository
Mostra file Open project: SzymonPobiega/restbucks-wcf Class Usage Examples

Public Methods

Method Description
FindById ( int orderId ) : Order
Remove ( int orderId ) : void
Store ( Order order ) : int

Private Methods

Method Description
RemoveExpired ( ) : void
RemoveExpiredIfNecessary ( ) : void

Method Details

FindById() public method

public FindById ( int orderId ) : Order
orderId int
return Restbucks.Service.Domain.Order

Remove() public method

public Remove ( int orderId ) : void
orderId int
return void

Store() public method

public Store ( Order order ) : int
order Restbucks.Service.Domain.Order
return int