コード例 #1
0
        public void Should_be_possible_get_a_collection_of_executionLogDTO_from_executionLogs()
        {
            var executionLogs = this.GetExecutionLogs();
            ExecutionLogAssembler assembler = new ExecutionLogAssembler();
            var executionLogDTOs            = assembler.CreateDTOsFromCollectionOfExecutionLogs(executionLogs);

            Assert.IsTrue(executionLogDTOs.Count() > 0);
        }
コード例 #2
0
        public void Should_be_possible_to_get_ExecutionLogDTO_from_ExecutionLog()
        {
            IEnumerable <CollectExecutionLog> executionLogs = this.GetExecutionLogs();

            ExecutionLogAssembler assembler = new ExecutionLogAssembler();
            var executionLog = assembler.CreateDTOFromExecutionLog(executionLogs.First());

            Assert.IsNotNull(executionLog);
            Assert.IsNotNull(executionLog.Date);
            Assert.IsNotNull(executionLog.LogType);
            Assert.IsNotNull(executionLog.Message);
        }