Just Simply Code

Another developer blog

  • Home
  • About
  • Register

Month: December 2016

ASP.NET script bundling without minification

December 17, 2016 / 1 Comment

In a project I recently joined, the team uses React for the front-end. They have a Gulp task which compiles jsx files to js files and minify them. The Gulp task also appends a version number at the end of the minified js file’s name. I notice that the front-end developer has to manually increment this version … [Read more…]

Posted in: Uncategorised Tagged: Bundling, Scripts Bundling

Mocking HTTP current context identity

December 3, 2016 / 1 Comment

There are many places in the code in the project I’m working on where HttpContext.Current.User is used to get id of the currently logged in user. This can be tricky when it comes to unit testing functions using the HttpContext. One of the way to get around this is to mock the HttpContext by manually creating the identity. … [Read more…]

Posted in: Uncategorised Tagged: Mock data, Unit Testing
RSS
Follow by Email
Facebook
Twitter
LinkedIn

Recent Posts

  • Add Javascript to bottom of body tag from a partial view in MVC
  • Ignore specified members field when serialise to Json string
  • Rewrite SOAP request message before sending
  • Badly auto generated WCF proxy
  • Adding Polly policies

Archives

  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • October 2017
  • September 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • July 2016
  • June 2016
  • March 2016
  • February 2016
  • January 2016

Copyright © 2019 Just Simply Code.

Me WordPress Theme by themehall.com