Esempio n. 1
0
        //[ImportingConstructor]
        public StudentAffairsService(IStudentAffairs studentAffairs, ITracer tracer) :
            base(tracer)
        {
            _studentAffairs = studentAffairs;

            if (studentAffairs == (IStudentAffairs)null)
            {
                throw new ArgumentNullException("studentAffairs", "Student Affairs Should Not Be Null");
            }
            this._studentAffairs = studentAffairs;
            tracer.ConfigureTracer(this.GetType());
            tracer.LogInfo("StudentManagementService Called");
        }
Esempio n. 2
0
 public Repository(IQueryableUnitOfWork unitOfWork, ITracer tracer)
 {
     //check preconditions
     if (unitOfWork == (IQueryableUnitOfWork)null)
     {
         throw new ArgumentNullException("unitOfWork", "Unit of Work Cannot Be Null");
     }
     if (tracer == (ITracer)null)
     {
         throw new ArgumentNullException("tracer", "Tracer Cannot Be Null");
     }
     //set internal values
     _unitOfWork = unitOfWork;
     _tracer     = tracer;
     tracer.ConfigureTracer(this.GetType());
 }