C# Class JordanRift.Grassroots.Tests.Fakes.FakeCauseRepository

Inheritance: ICauseRepository
显示文件 Open project: JordanRift/Grassroots

Public Methods

Method Description
Add ( Cause cause ) : void
AddNote ( CauseNote note ) : void
Delete ( Cause cause ) : void
Dispose ( ) : void
FindActiveCauses ( ) : IQueryable
FindAllCauses ( ) : IQueryable
FindCausesByCauseTemplateID ( int causeTemplateID ) : IQueryable
FindCausesByUserProfileID ( int userProfileID ) : IQueryable
GetCauseByCauseTemplateIdAndReferenceNumber ( int id, string referenceNumber ) : Cause
GetCauseByID ( int id ) : Cause
Reset ( ) : void
Save ( ) : void

Private Methods

Method Description
FakeCauseRepository ( ) : System.Collections.Generic
SetUp ( ) : void

Method Details

Add() public method

public Add ( Cause cause ) : void
cause Cause
return void

AddNote() public method

public AddNote ( CauseNote note ) : void
note CauseNote
return void

Delete() public method

public Delete ( Cause cause ) : void
cause Cause
return void

Dispose() public method

public Dispose ( ) : void
return void

FindActiveCauses() public method

public FindActiveCauses ( ) : IQueryable
return IQueryable

FindAllCauses() public method

public FindAllCauses ( ) : IQueryable
return IQueryable

FindCausesByCauseTemplateID() public method

public FindCausesByCauseTemplateID ( int causeTemplateID ) : IQueryable
causeTemplateID int
return IQueryable

FindCausesByUserProfileID() public method

public FindCausesByUserProfileID ( int userProfileID ) : IQueryable
userProfileID int
return IQueryable

GetCauseByCauseTemplateIdAndReferenceNumber() public method

public GetCauseByCauseTemplateIdAndReferenceNumber ( int id, string referenceNumber ) : Cause
id int
referenceNumber string
return Cause

GetCauseByID() public method

public GetCauseByID ( int id ) : Cause
id int
return Cause

Reset() public static method

public static Reset ( ) : void
return void

Save() public method

public Save ( ) : void
return void