private bool Equals(BTestComplete other)
 {
     return(TestId == other.TestId &&
            StudentId == other.StudentId &&
            Status == other.Status &&
            ApproveDate == other.ApproveDate &&
            Score == other.Score);
 }
        public BTestComplete(TestComplete testComplete)
        {
            var           config           = new MapperConfiguration(cfg => cfg.CreateMap <TestComplete, BTestComplete>());
            Mapper        mapper           = new Mapper(config);
            BTestComplete tmpBTestComplete = mapper.Map <BTestComplete>(testComplete);

            this.TestId      = tmpBTestComplete.TestId;
            this.StudentId   = tmpBTestComplete.StudentId;
            this.Status      = tmpBTestComplete.Status;
            this.ApproveDate = tmpBTestComplete.ApproveDate;
            this.Score       = tmpBTestComplete.Score;
        }