I had commented out the code in the SolutionMenuContributor , GetFirstProjectAsync method.
Did you uncomment it before you tested. SolutionMenuContributor still doesn't work for me, although the test class does. This is the issue.
I've sent you a project. The class that has the issue is SolutionMenuContributor in the Blazor project. The test class/method is ProjectApplicationTests class GetListAsyncForSltn method in the Datansa.App.Application.Tests project.
Hi.
Yes that worked. So the issue was, in the Test class there was no ambient UOW, as there would be in an ApplicationService class.
Thanks for your help.
I've sent the project by email.
By the way, the Test class that contains the Test method is "EntityInstanceManager_Tests" in the Datansa.App.Domain.Tests project under the "Solution" folder.
Is there a way to provide my Project privately ?
Ok, Thanks very much for your help.
Ok.
I made the change and it worked.
Just to clarify.
Thanks - Adam
Hi.
Thanks, that fixed the issue.
A supplementary question, does the SQlite EF Core Context used by the test framework support the IncludeDetails=true.
In my code above foreach(var templateBranch in template.Branches), Branches returns null.
Branches are added in a seeding class, which worked for SQL Server.