コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public MessageLogControllerTests()
 {
     messageLog = A.Fake <IMessageLog>();
     controller = new MessageLogController(messageLog);
 }