public void TestAll()
        {
            SubjectFacade      facade = new SubjectFacade(UnitOfWork);
            IList <SubjectDto> result = facade.RetrieveAllSubject(new SubjectConverter());

            Assert.IsNotNull(result);
        }
Example #2
0
 private void LoadData()
 {
     using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CRMDataStoreKey))
     {
         SubjectFacade subjectFacade = new SubjectFacade(uow);
         CurrentInstances = subjectFacade.RetrieveAllSubject();
     }
 }
Example #3
0
 public IEnumerable <SubjectDto> GetSubjects()
 {
     using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CMSDataStoreKey))
     {
         SubjectFacade      facade = new SubjectFacade(uow);
         IList <SubjectDto> result = facade.RetrieveAllSubject(new SubjectConverter());
         return(result);
     }
 }