public void TestAll() { SubjectFacade facade = new SubjectFacade(UnitOfWork); IList <SubjectDto> result = facade.RetrieveAllSubject(new SubjectConverter()); Assert.IsNotNull(result); }
private void LoadData() { using (IUnitOfWork uow = UnitOfWorkFactory.Instance.Start(DataStoreResolver.CRMDataStoreKey)) { SubjectFacade subjectFacade = new SubjectFacade(uow); CurrentInstances = subjectFacade.RetrieveAllSubject(); } }
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); } }