public DictaatControllerTest()
        {
            _context.Database.BeginTransaction();

            _c = new DictatenController(_dictaatRepo, null, base.am.Object)
            {
                ControllerContext = new ControllerContext
                {
                    HttpContext = new DefaultHttpContext
                    {
                        User = _user
                    }
                }
            };
        }
Beispiel #2
0
        public DictaatControllerTest()
        {
            _context.Database.BeginTransaction();

            _c = new DictatenController(_dictaatRepo, null, base.am.Object)
            {
                ControllerContext = new ControllerContext
                {
                    HttpContext = new DefaultHttpContext
                    {
                        User = new TestPrincipal(new Claim[] {
                            new Claim("name", "ssmulder")
                        })
                    }
                }
            };
        }