The .ToDictionary()
extension will throw an argument exception if we have duplicate keys added to the dictionary.
How to generate Fake data in C#?
The reason for generating fake data can be anything. But, the most common use case I think for generating fake data is when someone is dependent on the result from your API. As a backend developer, you’ve to just create a model and return a few fake objects that represent data. We could however create … Read more