/// <summary>
        /// Creates the DensAsi interview.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>A DensAsiInterview.</returns>
        public DensAsiInterview CreateDensAsiInterview( Visit visit )
        {
            var activityType = _lookupValueRepository.GetLookupByWellKnownName<ActivityType>(WellKnownNames.VisitModule.ActivityType.DensAsiInterview);
            var densAsiInterview = new DensAsiInterview ( visit, activityType );

            _densAsiInterviewRepository.MakePersistent ( densAsiInterview );

            return densAsiInterview;
        }
Example #2
0
        /// <summary>
        /// Creates the DensAsi interview.
        /// </summary>
        /// <param name="visit">The visit.</param>
        /// <returns>A DensAsiInterview.</returns>
        public DensAsiInterview CreateDensAsiInterview(Visit visit)
        {
            var activityType     = _lookupValueRepository.GetLookupByWellKnownName <ActivityType>(WellKnownNames.VisitModule.ActivityType.DensAsiInterview);
            var densAsiInterview = new DensAsiInterview(visit, activityType);

            _densAsiInterviewRepository.MakePersistent(densAsiInterview);

            return(densAsiInterview);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="DensAsiInterviewSectionAggregateNodeBase"/> class.
 /// </summary>
 /// <param name="densAsiInterview">The dens asi interview.</param>
 protected DensAsiInterviewSectionAggregateNodeBase( DensAsiInterview densAsiInterview )
 {
     DensAsiInterview = densAsiInterview;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DensAsiInterviewSectionAggregateNodeBase"/> class.
 /// </summary>
 /// <param name="densAsiInterview">The dens asi interview.</param>
 protected DensAsiInterviewSectionAggregateNodeBase(DensAsiInterview densAsiInterview)
 {
     DensAsiInterview = densAsiInterview;
 }
        /// <summary>
        /// Destroys the DensAsi interview.
        /// </summary>
        /// <param name="densAsiInterview">The DensAsi interview.</param>
        public void DestroyDensAsiInterview( DensAsiInterview densAsiInterview )
        {
            Check.IsNotNull ( densAsiInterview, "DensAsiInterview is required." );

            _densAsiInterviewRepository.MakeTransient ( densAsiInterview );
        }
Example #6
0
        /// <summary>
        /// Destroys the DensAsi interview.
        /// </summary>
        /// <param name="densAsiInterview">The DensAsi interview.</param>
        public void DestroyDensAsiInterview(DensAsiInterview densAsiInterview)
        {
            Check.IsNotNull(densAsiInterview, "DensAsiInterview is required.");

            _densAsiInterviewRepository.MakeTransient(densAsiInterview);
        }