C# 클래스 Tests.MockViewModel

상속: IViewModel
파일 보기 프로젝트 열기: ThoughtWorksStudios/vs-connector

공개 메소드들

메소드 설명
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

메소드 상세

CreateCard() 공개 메소드

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

GetCardsForFavorite() 공개 메소드

public GetCardsForFavorite ( string view ) : CardBasicInfo>.SortedList
view string
리턴 CardBasicInfo>.SortedList

GetCardsOfType() 공개 메소드

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

GetCommentsForCard() 공개 메소드

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

GetOneCard() 공개 메소드

Returns a Card
public GetOneCard ( int cardNo ) : Card
cardNo int Card number
리턴 Card

MockViewModel() 공개 메소드

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

PostComment() 공개 메소드

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

Project() 공개 메소드

Returns the selected project
public Project ( ) : Project
리턴 Project

SelectProject() 공개 메소드

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

SendMurmur() 공개 메소드

Sends a murmur
public SendMurmur ( string murmur ) : void
murmur string
리턴 void