Exemple #1
0
        public void GetAllActivities()
        {
            int editionId = 3;

            var result = _activityService.GetActiveActivities(editionId);

            Assert.IsNotNull(result, "GetActivities() results null");
            Assert.IsTrue(result.Count == 2, "GetActivities() is not 2");
        }
        public List <ActivityDto> GetActiveActivities(int editionId)
        {
            var activities = _activityDomainService.GetActiveActivities(editionId);

            var result = new List <ActivityDto>();

            foreach (var act in activities)
            {
                result.Add(ActivityMapper.Map(act));
            }

            return(result);
        }