Add test support to optionally test using a signed service library
Nessuno ha ancora preso questa issue.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Some M.G.D.C.Test tests take a dependency on models in M.G service library. This is fine as long as we only need to use the non-collection models like User. Otherwise, all of the collection models and request builders take a dependency on the M.G.C which is signed.
So, we need to support tests that target M.G.C in the project, and the signed+published service library and its dependency on the signed+published M.G.C.
I think we can achieve this by adding an alias to the test reference in M.G.D.C.Test project to the M.G.C project and updating the tests to use that, and then we can add a reference to the signed+published M.G.C NuGet so we can test using the service library when it requires a reference to objects defined in M.G.C.
Another option would be to bring in the service library as a submodule, and reference it via a project via an alias.
This enables:
var deltaResponse = await deltaResponseHandler.HandleResponse<EventDeltaCollectionResponse>(hrm);
EventDeltaCollectionPage deltaResponsePage = deltaResponse.Value;
// deltaResponse.Value[0] is a property on ICollectionPage which is in the signed M.G.C
var body = deltaResponsePage.Value[0].Body; // Can't do this now
- Lingua principale
- C#
- Stelle
- 164
- Fork
- 65
- Merge medio
- 38m
- PR unite (30g)
- 1
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoftgraph/msgraph-sdk-dotnet-core
-
status:waiting-for-triage type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
status:waiting-for-triage type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
microsoftgraph/msgraph-sdk-dotnet-core#1047 · 3 commenti · 8 reazioni ·
-
status:waiting-for-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
microsoftgraph/msgraph-sdk-dotnet-core#1046 · 2 commenti · 2 reazioni ·
-
.NET
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
microsoftgraph/msgraph-sdk-dotnet-core#1003 · 1 assegnatario ·
Tutte le issue di microsoftgraph/msgraph-sdk-dotnet-core
Issue simili
-
effort:S P3 refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nightscout/nocturne#1532 ·
-
core dependencies
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
C#/.NET Roslyn LSP Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Suspicious code fragments Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DotNetNext/SqlSugar#1458 ·