コード例 #1
0
        protected BaseTestFixture()
        {
            Context = LfcDbContextFactory.Create();
            Mapper  = AutoMapperFactory.Create();

            AdminRequestContext = new RequestContext
            {
                UserId = 1,
                User   = new ClaimsPrincipal(new ClaimsIdentity(GetClaims(),
                                                                "Identity.Application", "name", "role"))
            };
        }
コード例 #2
0
 public void Dispose()
 {
     LfcDbContextFactory.Destroy(Context);
 }