Beispiel #1
0
 public AllocationService(
     IAllocPack allocPack,
     IRepository <SosOption, int> sosOptionRepository,
     IRepository <SosAllocDetail, int> sosAllocDetailRepository,
     ITransactionManager transactionManager)
 {
     this.allocPack                = allocPack;
     this.sosOptionRepository      = sosOptionRepository;
     this.sosAllocDetailRepository = sosAllocDetailRepository;
     this.transactionManager       = transactionManager;
 }
Beispiel #2
0
        public void SetUpContext()
        {
            this.SosOptionRepository      = Substitute.For <IRepository <SosOption, int> >();
            this.SosAllocDetailRepository = Substitute.For <IRepository <SosAllocDetail, int> >();
            this.TransactionManager       = Substitute.For <ITransactionManager>();
            this.AllocPack = Substitute.For <IAllocPack>();

            this.Sut = new AllocationService(
                this.AllocPack,
                this.SosOptionRepository,
                this.SosAllocDetailRepository,
                this.TransactionManager);
        }