public CollectResultAssembler() { this.executionLogAssembler = new ExecutionLogAssembler(); }
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); }
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); }