protected BaseTestFixture() { Context = LfcDbContextFactory.Create(); Mapper = AutoMapperFactory.Create(); AdminRequestContext = new RequestContext { UserId = 1, User = new ClaimsPrincipal(new ClaimsIdentity(GetClaims(), "Identity.Application", "name", "role")) }; }
public void Dispose() { LfcDbContextFactory.Destroy(Context); }