public void ODataRepository_BigPicture() { var testCfg = TestCfg.Get(); var contentMetaDataXml = ReadMetaDataXml(testCfg); IServiceCollection services = new ServiceCollection(); services.AddLogging((builder) => { builder.AddDebug(); }); //services.AddHttpClient((builder) => { // // builder.Logger= // // TODO: TODO Add Credentials // //builder.AddSharePointOnlineCredentials //}); services.AddServiceClientCredentials((builder) => { }); services.AddOfaSchlupferODataRepository(); services.AddOfaSchlupferModel(); services.AddOfaSchlupferEntity(); var serviceProvider = services.BuildServiceProvider(); var modelRoot = new ModelRoot(serviceProvider); var modelRepository1 = modelRoot.CreateRepository("one", "OData"); var modelRepository2 = modelRoot.CreateRepository("two", "OData"); var odataRepository1 = modelRepository1.GetReferenceRepositoryModel(); var odataRepository2 = modelRepository2.GetReferenceRepositoryModel(); Assert.NotNull(odataRepository1); Assert.NotNull(odataRepository2); }