コード例 #1
0
 public void Init()
 {
     context = new DummyContext();
     mockpr  = new Mock <IProductRepository>();
     mockdr  = new Mock <IDoelgroepRepository>();
     mocklr  = new Mock <ILeergebiedRepository>();
     mockgr  = new Mock <IGebruikerRepository>();
     mockpr.Setup(p => p.VindAlleProducten()).Returns(context.Producten.AsQueryable());
     mockpr.Setup(p => p.FindByProductNummer(1)).Returns(context.P1ZonderReservatiesOfBlokkeringen);
     vController = new VerlanglijstController(mockpr.Object, mockgr.Object);
 }
コード例 #2
0
 public void SetUpContext()
 {
     mockgr  = new Mock <IGebruikerRepository>();
     context = new DummyContext();
 }
 public void SetUpContext()
 {
     //_signInManager = new ApplicationSignInManager();
     //_userManager = new ApplicationUserManager();
     context = new DummyContext();
 }