C# Class NerdDinner.Tests.Fakes.FakeDinnerRepository

Inheritance: IDinnerRepository
Exibir arquivo Open project: NadeemAfana/NerdDinner-Internationalization Class Usage Examples

Public Methods

Method Description
AllIncluding ( ) : IQueryable
Delete ( int id ) : void
DeleteRsvp ( NerdDinner.Models.RSVP rsvp ) : void
FakeDinnerRepository ( List dinners ) : System
Find ( int id ) : NerdDinner.Models.Dinner
FindByLocation ( float latitude, float longitude ) : IQueryable
FindDinnersByText ( string q ) : IQueryable
FindUpcomingDinners ( ) : IQueryable
InsertOrUpdate ( NerdDinner.Models.Dinner dinner ) : void
Save ( ) : void

Method Details

AllIncluding() public method

public AllIncluding ( ) : IQueryable
return IQueryable

Delete() public method

public Delete ( int id ) : void
id int
return void

DeleteRsvp() public method

public DeleteRsvp ( NerdDinner.Models.RSVP rsvp ) : void
rsvp NerdDinner.Models.RSVP
return void

FakeDinnerRepository() public method

public FakeDinnerRepository ( List dinners ) : System
dinners List
return System

Find() public method

public Find ( int id ) : NerdDinner.Models.Dinner
id int
return NerdDinner.Models.Dinner

FindByLocation() public method

public FindByLocation ( float latitude, float longitude ) : IQueryable
latitude float
longitude float
return IQueryable

FindDinnersByText() public method

public FindDinnersByText ( string q ) : IQueryable
q string
return IQueryable

FindUpcomingDinners() public method

public FindUpcomingDinners ( ) : IQueryable
return IQueryable

InsertOrUpdate() public method

public InsertOrUpdate ( NerdDinner.Models.Dinner dinner ) : void
dinner NerdDinner.Models.Dinner
return void

Save() public method

public Save ( ) : void
return void