Getting messages quickly on to the bus…
Category: .Net Core rss
Posts
To demonstrate Dependency Injection in a .Net Core Console project, I will create a SecurityService class which will have a dependency on an AuditService class.
How do you unit test something that has a dependency on Entity Framework? I ran into a situation recently when the code I wanted to test was loading a set of rules from a database that dictated the what functionality a web site had.
Swashbuckle and Swagger generates useful documentation for Web APIs. It can also allow you to call the API from your browser.
An Azure WebJob allows you to run a background job in the same context as you App Service. The job can either run continuously or triggered (manually triggered or on a schedule).
Localizing content in MVC is straight forward with the use of .resx files to either annotate your data models or referencing the resources directly. But accessing the localized resource from within JavaScript code can be a little bit fiddlier.