public void CreateActivityTest() { var editionId = 1; var activityDto = new ActivityModel { Title = "Title", Description = "Description", Image = "URL", Places = 3, TimeSlotId = 1, TypeId = 1 }; var result = _activityService.CreateActivity(editionId, activityDto); Assert.IsTrue(result == 1, "CreateActivity() is not 1"); }
public int CreateActivity(int editionId, ActivityDto activityDto) { var activityModel = ActivityMapper.Map(activityDto); return(_activityDomainService.CreateActivity(editionId, activityModel)); }