コード例 #1
0
 public AdminContextTest()
 {
     bidangUow = A.Fake <IBidangUOW>();
     A.CallTo(() => bidangUow.GetBidangTugas(new petugas())).WithAnyArguments().Returns(new bidang());
     permohonanService = A.Fake <IPermohonanService>();
     service           = new AdminService(new AppCore.ModelDTO.petugas(), permohonanService, bidangUow);
 }
コード例 #2
0
 public AdminService(petugas admin, IPermohonanService permohonanService, IBidangUOW bidangUow)
 {
     this.Petugas      = admin;
     PermohonanService = permohonanService;
     BidangUnitOfWork  = bidangUow;
     ListBidangTugas   = BidangUnitOfWork.GetBidangTugas();
 }