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; }
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); }