public void Init() { _messageLogs = Builder <MessageLog> .CreateListOfSize(10).All().Build().ToList(); _messageLogsDTO = Builder <MessageLogDTO> .CreateListOfSize(5).All().Build().ToList(); _repository = new Mock <IMessageLogRepository>(); _controller = new MessageLogController(_repository.Object); }
public void Init() { _messageLogs = Builder <MessageLog> .CreateListOfSize(10).All().Build().ToList(); _messageLogPairsDetails = Builder <MessageLogPairsViewModelDetails> .CreateListOfSize(5).All().Build().ToList(); _repository = new Mock <IMessageLogsRepository>(); _controller = new MessageLogController(_repository.Object); }
public MessageLogControllerTests() { messageLog = A.Fake <IMessageLog>(); controller = new MessageLogController(messageLog); }