示例#1
0
        private void GetData()
        {
            //Get Data Table Agency
            Agency agency = _agencyRepository.Get(_id);

            txtAgencyName.Text = agency.AgencyName;
            txtGhiChu.Text     = agency.Note;
            chkUsing.Checked   = (agency.Status == GlobalConstants.StatusValue.Using);
        }
        public void GetSingleAlias()
        {
            Response <Agency> response = new Response <Agency>();

            agencyRepo.Insert(AGENCY1);

            response.Data = AGENCY1;
            var fromMethod = agencyRepo.Get(1);

            Assert.AreEqual(fromMethod.Data, response.Data);
        }