//public MessageController() //{ // if (_facade == null) // _facade = new MessageFacade(); //} public MessageController(IMessageFacade facade) { _facade = facade; }
public void SetUp() { _repository = new InMemoryMessageRepository(); _facade = new MessageFacade(_repository); _controller = new MessageController(_facade); _defaultUserName = "******"; _defaultMessage = "Message"; }
public FlockMessageController(IMessageFacade messageFacade) { _messageFacade = messageFacade; }