public IReadOnlyCollection <JungleCamp> CreateAll(JungleCampPosition position) { var camps = _serviceLocator.GetAllServices <JungleCamp>(); camps.ForEach(f => f.InitializePosition(position)); camps = camps.OrderBy(f => f.SortKey).ToList(); return(camps); }
public void InitializePosition(JungleCampPosition position) { Position = position; }