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

            _c = new DictatenController(_dictaatRepo, null, base.am.Object)
            {
                ControllerContext = new ControllerContext
                {
                    HttpContext = new DefaultHttpContext
                    {
                        User = _user
                    }
                }
            };
        }
Exemplo n.º 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")
                        })
                    }
                }
            };
        }