コード例 #1
0
        public void Get_GetLogData()
        {
            // Arrange
            mockLogsRepository = new Mock <IRepository <Log> >();
            var logsService = new LogsService(mockLogsRepository.Object, mapper);

            // Act
            var data = logsService.Get();

            // Assert
            mockLogsRepository.Verify(x => x.Get(), Times.Once);
        }