summaryrefslogtreecommitdiff
path: root/slips/src/app/Marina/Task/Mappers/BrokenRulesToDisplayItemMapper.cs
blob: 5a9aee6262d308be66eea8b9bb70c6cae9aac4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System.Collections.Generic;
using Marina.Domain.Interfaces;
using Marina.Presentation.DTO;

namespace Marina.Task.Mappers {
	public class BrokenRulesToDisplayItemMapper : IBrokenRulesToDisplayItemMapper {
		public IEnumerable< DisplayResponseLineDTO > MapFrom( IEnumerable< IBrokenRule > input ) {
			foreach ( IBrokenRule brokenRule in input ) {
				yield return new DisplayResponseLineDTO( brokenRule.Message( ) );
			}
		}
	}
}