public DictaatControllerTest() { _context.Database.BeginTransaction(); _c = new DictatenController(_dictaatRepo, null, base.am.Object) { ControllerContext = new ControllerContext { HttpContext = new DefaultHttpContext { User = _user } } }; }
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") }) } } }; }