JavaScript Collections – Set and Map

 Introduction In this post we will get familiar with two different collections in JavaScript: Set Map In one of the next posts we will also talk about two similar collections: WeakSet WeakMap   They were all introduced to JavaScript spec with ES2015, also known as ES6. Both Map and Set are iterable types. Just like […]

Continue reading

ASP.NET Core – Unit testing IAuthorizationService and dependencies inside of your controller

Unit Testing – IAuthorizationService, Requirement and Handler You have a controller that makes use of IAuthorizationService and you have a custom requirement – implementation of IAuthorizationRequirement. You might also have your custom handler which is an implementation of IAuthorizationHandler. As an honourable .NET Core citizen, you are doing some unit tests for your controller and […]

Continue reading
1 2 3 11