sahi

Stories submitted by friends of sahi

Configuring MVC Bundles with NuGet(www.tomdupont.net)

submitted by tduponttdupont(1259) 4 days, 13 hours ago

MvcBundleConfig is a very simple project that adds configuration and debugging features to MVC 4's bundling framework. Once you create a new MVC4 web application and install the MvcBundleConfig NuGet Package, then you need only update our layout to use the new bundle extension methods, and you are ready to go! read more...

add a comment |category: |Views: 6

tags: another

Configuring WebClient Timeout and ConnectionLimit(www.tomdupont.net)

submitted by tduponttdupont(1259) 17 days, 14 hours ago

It is great how simple the WebClient class is to use, but unfortunately it does not natively support configuring it's timeout or connection limit. Good news, both of these issues are very easy to fix by simply extending the WebClient class. read more...

1 comment |category: |Views: 109

tags: another

xUnit Theory, the Data Driven Unit Test(www.tomdupont.net)

submitted by tduponttdupont(1259) 1 month, 13 days ago

A good set of unit tests often end up reusing the same code with varied inputs. Rather than copy and paste that test code over and over, we can use the pattern of data driven unit tests to help streamline our test fixtures. This is the practice of having a single test definition be invoked and count as multiple tests at run time. This also enables us to do other dynamic things, such as configuring our unit tests from external sources. :) I love NUnit, but it does not offer data driven unit tests. I frequently use MSTest, but it's data driven tests inconveniently require you to define a DataSource. Meanwhile xUnit offers several lightweight and simple options for defining data driven tests, which it refers to as theories. read more...

add a comment |category: |Views: 4

tags: another

Migrating from NUnit to xUnit(www.tomdupont.net)

submitted by tduponttdupont(1259) 1 month, 18 days ago

If you are currently using NUnit to write your unit tests, then it is not at all difficult to migrate to using xUnit. The philosophical difference between the two is simply this: with xUnit you need to think of your tests as objects, rather than of methods. Here is a visual representation of equivalent test setups between NUnit and xUnit... read more...

2 comments |category: |Views: 198

tags: another

Configuring Bundles in MVC 4(www.tomdupont.net)

submitted by tduponttdupont(1259) 1 month, 26 days ago

The bundling, compression, and minification of JavaScript is important to the speed and performance of modern websites. This is why I was so excited to hear that such features were (finally) coming built in to ASP.NET MVC 4. Introducing MvcBundleConfig: a project that adds configuration and debugging features to MVC 4's bundling framework, and meets the needs and wants of a good minification framework. read more...

2 comments |category: |Views: 156

tags: another

Browser Specific TestFixtures Sharing Tests(www.tomdupont.net)

submitted by tduponttdupont(1259) 3 months, 6 days ago

How to share Tests across browser specific TestFixtures with WebDriver. When writing a unit test to test a webpage, you will want to duplicate that test against multiple browsers. How do we do accomplish this feat? Inheritance! read more...

add a comment |category: |Views: 5

tags: another

Sharing a WebDriver across TestFixtures(www.tomdupont.net)

submitted by tduponttdupont(1259) 3 months, 16 days ago

WebDriver (also known as Selenium 2.0) is a web testing tool that is both useful and easy, which is a very rare find. If you are doing web development with ASP.NET, you need to take 30 minutes of your time and go try out WebDriver. That is all the time it will take to get you hooked. To launch a browser you need only new up a Driver object for that browser. I used to create a new Driver in my TestFixtureSetup, and then close and dispose of that in the testFixtureTearDown. However now that Firefox does not persist my windows login credentials it can be very frustrating to have to log back in for every test fixture. A solution to this problem is simply to share a single WebDriver across multiple TestFixtures. Fortunately NUnit's SetUpFixture makes this very easy to do. read more...

1 comment |category: |Views: 40

tags: another

Configuring MVC Routes in Web.config(www.tomdupont.net)

submitted by tduponttdupont(1259) 6 months, 23 days ago

By simply reading routes out of the Web.config you provide a way to control routing without having to redeploy code, allowing you to enable or disable website functionality on the fly. read more...

add a comment |category: |Views: 8

tags: another

Using the InternetExplorerDriver for WebDriver(www.tomdupont.net)

submitted by tduponttdupont(1259) 7 months, 9 days ago

Are you getting this error when trying to use the InternetExplorerDriver for WebDriver (Selenium 2.0)? "System.InvalidOperationException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver)" Don't worry, it's easier to fix than it sounds... read more...

add a comment |category: |Views: 32

tags: another

Zen and the Art of Dependency Injection in MVC(community.codesmithtools.com)

submitted by tduponttdupont(1259) 9 months, 28 days ago

Right out of the box the MVC model binders are already injecting models straight into your controllers, so why not take it one more step forward and inject your services too? If you are not already doing TDD with Dependency Injection, then it is time to start. On the plus side, thanks to tools like NuGet, it has never been easier to get started with all of these new fun techniques! read more...

1 comment |category: |Views: 72

tags: another

AddThis.NET: Google 1 Button for Blogengine(www.mbaldinger.com)

submitted by baldibaldi(508) 10 months, 1 day ago

AddThis.NET is a Blogengine.NET extensions which adds social bookmarking buttons to all of your posts. All buttons can be individually aligned, ordered and enabled or disabled. The following buttons are supported: Google 1, Facebook Like, Facebook Share, Twitter, Google Buzz, StumbeUpon, Digg, TweetMeme, DotnetShoutOut and DotnetKicks read more...

add a comment |category: |Views: 2

tags: another

Preview: CodeSmith 6 Template Explorer(community.codesmithtools.com)

submitted by tduponttdupont(1259) 10 months, 5 days ago

The CodeSmith Team has been hard at work updating the CodeSmith Generator to use an all new WPF UI. Beyond having a sleek new look, the new template explorer also includes full file system functionality. Check it out and leave feedback now, because it is very close to its first public beta. read more...

add a comment |category: |Views: 17

tags: another

Localize the user with the javascript Geolocation API(www.mbaldinger.com)

submitted by baldibaldi(508) 10 months, 8 days ago

The web in the future will contain more localized information than it already contains today. The Javascript Geolocation API contains the tools you need to localize a user of your web site. It is very accurate and it is easy to use with a map provider like Google or Bing, so keep an eye on this API! read more...

add a comment |category: |Views: 1

tags: another

Video: CodeSmith 6.0 Editor in Action(community.codesmithtools.com)

submitted by tduponttdupont(1259) 10 months, 13 days ago

This short video shows the new CodeSmith Generator 6.0 Editor in action. This new editor will make the CodeSmith Template editing experience about 10 times better than it was before (yes, that is a scientific measurement), and that is not even counting that it will be integrated right into Visual Studio. There is still more work to do, but a beta version is coming soon. read more...

add a comment |category: |Views: 29

tags: another

CodeSmith Spotlight: Silverlight MVVM Templates(community.codesmithtools.com)

submitted by tduponttdupont(1259) 10 months, 15 days ago

Oscar Agreda authored a set of templates that are capable of generating an entire Silverlight application that follows Microsoft best practices. He explains: "Microsoft hired a group of top Silverlight Business experts to create the MVVM PDC presentation for the creation of truly Silverlight Business Application using the MvvM pattern, unfortunately the sample application from the presentation is not very useful and extremely small, besides there are many topics that were not covered, John Papa would have needed 40 hours to truly explain the whole Kung Fu MVVM Implementation. That is why we created a set of templates that we like to call our Robot (yes CodeSmith is a robot that you can teach everything and it will do it for you). It takes an existing Databases Schema and uses the awesome power of CodeSmith to create a Full Silverlight Business Application based on your exiting Model. Also it creates the extensions so you can add the Business Logic, like calculated Fields, etc." read more...

add a comment |category: |Views: 46

tags: another

Preview: CodeSmith 6 Editor Improvements(community.codesmithtools.com)

submitted by tduponttdupont(1259) 10 months, 19 days ago

The CodeSmith Team has been hard at work on the new Visual Studio Template Editor and existing Visual Studio Integration story. In Generator 6 you will be able to create, edit, and run template entirely from within Visual Studio. Check it out and leave feedback now, because it is very close to it's first public beta. read more...

add a comment |category: |Views: 35

tags: another