C# Class Tests.MockViewModel

Inheritance: IViewModel
Mostrar archivo Open project: ThoughtWorksStudios/vs-connector

Public Methods

Method Description
CreateCard ( string type, string name ) : Card

Crates a new card

GetCardsForFavorite ( string view ) : CardBasicInfo>.SortedList
GetCardsOfType ( string type ) : CardsCollection

Returns cards of a certain type

GetCommentsForCard ( int number ) : IEnumerable

Gets all the comments for a card

GetOneCard ( int cardNo ) : Card

Returns a Card

MockViewModel ( string filename ) : System

Mocked ViewModel implementing IViewModel

PostComment ( int number, string comment ) : void

Posts a comment to a card

Project ( ) : Project

Returns the selected project

SelectProject ( object projectId ) : bool

Set the value of the current project

SendMurmur ( string murmur ) : void

Sends a murmur

Method Details

CreateCard() public method

Crates a new card
public CreateCard ( string type, string name ) : Card
type string Card type
name string Card name
return Card

GetCardsForFavorite() public method

public GetCardsForFavorite ( string view ) : CardBasicInfo>.SortedList
view string
return CardBasicInfo>.SortedList

GetCardsOfType() public method

Returns cards of a certain type
public GetCardsOfType ( string type ) : CardsCollection
type string Card type
return CardsCollection

GetCommentsForCard() public method

Gets all the comments for a card
public GetCommentsForCard ( int number ) : IEnumerable
number int
return IEnumerable

GetOneCard() public method

Returns a Card
public GetOneCard ( int cardNo ) : Card
cardNo int Card number
return Card

MockViewModel() public method

Mocked ViewModel implementing IViewModel
public MockViewModel ( string filename ) : System
filename string Name of test data file to be passed to Mocks.MingleServer
return System

PostComment() public method

Posts a comment to a card
public PostComment ( int number, string comment ) : void
number int
comment string
return void

Project() public method

Returns the selected project
public Project ( ) : Project
return Project

SelectProject() public method

Set the value of the current project
public SelectProject ( object projectId ) : bool
projectId object
return bool

SendMurmur() public method

Sends a murmur
public SendMurmur ( string murmur ) : void
murmur string
return void