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