Ejemplo n.º 1
0
        public NavigationTest(ODatalizerWebApplicationFactory <Startup> factory)
        {
            _client = factory.CreateClient();

            using var scope = factory.Server.Services.CreateScope();
            _edm            = EdmBuilder.Build(scope.ServiceProvider.GetRequiredService <SampleDbContext>());
        }
Ejemplo n.º 2
0
 public ODatalizerEndpoint(DbContext db, string routeName = null, string routePrefix = null, string controller = null, string @namespace = null, bool authorize = false)
 {
     DbContext            = db;
     Namespace            = @namespace;
     ODatalizerController = controller;
     RouteName            = routeName;
     RoutePrefix          = routePrefix;
     Authorize            = authorize;
     EdmModel             = EdmBuilder.Build(db);
 }