C# Class Felbook.Tests.Fakes.MockMessageService

Inheritance: AbstractMockService, IMessageService
显示文件 Open project: janmarek/Felbook

Public Methods

Method Description
FindById ( int ID ) : Message
MarkMessageReadBy ( Message msg, User reader ) : void
MarkMessageUnreadBy ( Message msg, User reader ) : void
MockMessageService ( MockModel model ) : System
NumberOfUnreadMessages ( User user ) : int
SendMessageToUsers ( User sender, ISet recievers, Message prevMessage, string text ) : void

Method Details

FindById() public method

public FindById ( int ID ) : Message
ID int
return Felbook.Models.Message

MarkMessageReadBy() public method

public MarkMessageReadBy ( Message msg, User reader ) : void
msg Felbook.Models.Message
reader Felbook.Models.User
return void

MarkMessageUnreadBy() public method

public MarkMessageUnreadBy ( Message msg, User reader ) : void
msg Felbook.Models.Message
reader Felbook.Models.User
return void

MockMessageService() public method

public MockMessageService ( MockModel model ) : System
model MockModel
return System

NumberOfUnreadMessages() public method

public NumberOfUnreadMessages ( User user ) : int
user Felbook.Models.User
return int

SendMessageToUsers() public method

public SendMessageToUsers ( User sender, ISet recievers, Message prevMessage, string text ) : void
sender Felbook.Models.User
recievers ISet
prevMessage Felbook.Models.Message
text string
return void