Code Monkey home page Code Monkey logo

Comments (7)

vedion avatar vedion commented on August 24, 2024 1

That fixes our issue. Thank you for the fast feedback.

from bunit.

linkdotnet avatar linkdotnet commented on August 24, 2024

The change was related to #1409 as well.

I don't see much of a reason at the moment not to make it Singleton again - given that it has a dependency to TestContext which is somewhat Singleton.
Any arguments speaking against that @egil ?

from bunit.

egil avatar egil commented on August 24, 2024

If there are no reasons to keep it at scoped. But didn't we change it to scoped due to a dotnet 8 change?

from bunit.

linkdotnet avatar linkdotnet commented on August 24, 2024

as far as I remember we did this as "mitigation" for the endless recursive loop - at least all of our tests are green (including the new NavMan test)

from bunit.

egil avatar egil commented on August 24, 2024

Weren't there someone that raise an issue wanting this to be scoped. My brain is fried, so it could very well be it was a first attempt that was not roled back.

Let's revert and push a preview and see if somebody comes calling.

from bunit.

linkdotnet avatar linkdotnet commented on August 24, 2024

Well - our code indicates that funny bit:

services.AddSingleton<FakeNavigationManager>();
services.AddScoped<NavigationManager>(s => s.GetRequiredService<FakeNavigationManager>());

So we can safely assume, that it doesn't matter and we can revert back :D

Will make a PR.

from bunit.

linkdotnet avatar linkdotnet commented on August 24, 2024

@vedion There will be a 1.28.2-preview package on NuGet in a few minutes.
Let us know your feedback

from bunit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.