NSubstitute
awesome-dotnet-core
Our great sponsors
NSubstitute | awesome-dotnet-core | |
---|---|---|
11 | 11 | |
2,550 | 19,192 | |
1.5% | - | |
7.4 | 2.2 | |
1 day ago | about 1 month ago | |
C# | C# | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
NSubstitute
-
What am I missing about interfaces?
a. you might do so purely out of argo cult, i.e. because someone told you this was the right thing to do™, and that's a silly exercise. b. you could also be doing this for a good reason: to use the interface with a mocking tool like NSubstitute
-
The Moq-gate: You Either Die a Hero...
When comparing it to one of its most well-known alternatives, NSubstitute, which has "only" reached 85.6 million downloads, it is fair to say that Moq is the most widely used mocking library in the .NET ecosystem.
-
Since v4.20, Moq is harvesting email addresses
Maintainer rejected the PR. They have temporarily disabled the integration in https://github.com/moq/moq/pull/1375 but kept the SponsorLink project reference in the source code. It seems like their intent is to re-enable the integration at a later point :(
NSubstitute [0] might be an alternative. Or to fork Moq pre-4.20.
[0] https://nsubstitute.github.io/
-
Setting up a simple testing project with C#
In terms of mocking there are several frameworks you can use, but I've mainly relied on Moq and NSubstitute. Within this demo, I'm going to use NSubstitute as I've found it a little easier to use.
- [AskJS] Can we talk about Stubs, Spies and Mocks in JavaScript and what a mess they are?
-
Coincidence? I think not
it will change the URL from https://github.com/nsubstitute/NSubstitute to https://github.dev/nsubstitute/NSubstitute (or you can just nav there yourself).
-
I need a C# crash course for experienced developers
NSubstitute
-
Moq vs NSubstitute: syntax cheat sheet
🔗 NSubstitute documentation | NSubstitute
-
My Top N Favorite Plugins and Tools for Developers
If you use NSubstitute (the best mocking .NET framework), then you have to install this small yet useful plugin right now. It kindly generates mocks and Arg.Is / Arg.Any.
-
Dot net libraries/tools that are usefull in many projects
Another nice mocking framework is NSubstitute https://nsubstitute.github.io/
awesome-dotnet-core
- Some open source repo to explore
-
What is .NET, and why should you choose it?
Regarding your reservations:
1. Microsoft is a pretty big contributor to Linux at this point. Their cloud arm pretty much forced their hand and I don't see that story changing anytime soon. .NET on Linux has been great in my experience.
2. Some libs are, others are decidedly _not_ enterprise driven. The ecosystem is pretty large so there tends to be a lot of options with most packages. Just take a look here, https://github.com/thangchung/awesome-dotnet-core, the ORM section has things as big as nhibernate, which is about as heavy-handed as it gets, to things like Dapper which is about as lightweight as you can get.
-
Nuget - Most useful
You can find interesting packages/projects for searching "awesome dotnet" in github. For example: https://github.com/quozd/awesome-dotnet https://github.com/thangchung/awesome-dotnet-core
-
What is a good open source .net core project to learn about code structure?
For example the https://github.com/thangchung/awesome-dotnet-core Sample Projects section.
- Good nuget packages or GitHub repos to check out?
- Good C# Source Code
- Dot net libraries/tools that are usefull in many projects
- Comprehensive Resource For Modern Tooling
-
List You go to Online tool one you couldn't live without for Dev Work
Awesome .NET Core
-
Free Code Camp / Odin Project, but for .Net Core. Does it exist?
Another huge resource for .Net Core is https://github.com/thangchung/awesome-dotnet-core
What are some alternatives?
Moq - Repo for managing Moq 4.x [Moved to: https://github.com/moq/moq]
libphonenumber-csharp - Offical C# port of https://github.com/googlei18n/libphonenumber
AutoFixture - AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.
MakeMeAdmin - Make Me Admin is a simple, open-source application for Windows that allows standard user accounts to be elevated to administrator-level, on a temporary basis.
FakeItEasy - The easy mocking library for .NET
Entity Framework - EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
NUnit - NUnit Framework
NetSpell - Spell Checker for .NET
Rhino Mocks
DefenderCheck - Identifies the bytes that Microsoft Defender flags on.
Bogus - :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Dynamics-365-Workflow-Tools - Dynamics 365 Workflow Tools is a Community solution that expands Microsoft Dynamics 365 (CRM) Workflow features with lots of new posibilities. This helps you to build very advanced Codeless solutions in CRM.