Anti Forgery Token and Machine Key

If working on Asp.Net MVC, you will know the anti-forgery token that helps to protect our website against cross-site request forgery. To use this feature, call the AntiForgeryToken method from a form and add the ValidateAntiForgeryToken attribute to the action method that you want to protect. Call AntiForgeryToken from a form

Add ValidateAntiForgeryToken attribute to […]

Iphone App and Azure Web Api

In this post, I would like to share with you How to develop a native cross platform mobile application that interacts with Azure Web service. I. Requirement. As an account manager, I would like to request a mobile application that allows connecting to Azure web service to add, update, delete and view user accounts remotely. […]

Coding for Unit Testing.

This topic is discussed the class designation for unit testable. If you were started to write the unit test for your classes recently, definitely you may face the problem that some classes can’t be writing the unit test or alot of time has been spen for the single unit test. Why your class is not testable […]

What Is ReadOnlyCollection In .Net 4.5?

As you know, the new interfaces  IReadOnlyCollection<T> , IReadOnlyDictionary<T>  and IReadOnlyList<T>  had been added to DotNet4.5. The purpose of these interfaces is providing the generic read-only collection. In order for that purpose, the DotNet framework also provided the implementation of these interfaces: the  ReadOnlyCollection<T> was inherited IReadOnlyList<T>  and ReadOnlyDictionary<T>  was inherited IReadOnlyDictionary<T>. The IReadOnlyList<T>  is just an additional that inherited from […]

Consolidation For Microsoft Test And Microsoft Fakes

What’s new for MS Test? The Unit Testing Framework (MSTest) describes Microsoft’s suite of unit testing tools as integrated into some versions of Visual Studio 2005 and later. Similar to NUnit, MSTest is allowed to develop the Unit Test for your projects. From the NUnit 3.0 and latest MSTest will support to test Async methods, added platform support for Windows 10 and […]