Exemplo n.º 1
0
        public void Setup()
        {
            _transactionScope    = new TransactionScope();
            _rejectionRepository = new RejectionRepository(ConfigurationManager.ConnectionStrings["Unity"].ConnectionString);

            _domicile    = BuildMeA.Domicile("code", "description");
            _docType     = BuildMeA.DocType("code", "description");
            _subDocType1 = BuildMeA.SubDocType("code 1", "description 1").WithDocType(_docType);
            _manCo1      = BuildMeA.ManCo("description1", "code1").WithDomicile(_domicile);

            _document1 = BuildMeA.Document("id").WithDocType(_docType).WithSubDocType(_subDocType1).WithManCo(_manCo1);
            _rejection = BuildMeA.Rejection("name", DateTime.Now).WithDocument(_document1);
        }
Exemplo n.º 2
0
 public SuperintendentMedicineService()
 {
     rejectionRepository = new RejectionFileSystem();
     waitingRepostitory  = new WaitingMedicineFileSystem();
     approvedRepository  = new ApprovedMedicineFileSystem();
 }
 public PhysitianMedicineService()
 {
     this.approvedMedicineRepository = new ApprovedMedicineFileSystem();
     this.waitingMedicineRepository  = new WaitingMedicineFileSystem();
     this.rejectionRepository        = new RejectionFileSystem();
 }