swalther

Stories submitted by swalther

Essential Visual Studio Tips & Tricks that Every Developer Should Know(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 7 months ago

In this blog entry, Stephen Walther lists the essential tips and tricks that every developer who uses Visual Studio 2008 should know. The list is kept brief. The list focuses on only those tips and tricks that can be used on a daily basis. Almost all of these tips and tricks are just as useful regardless of whether you are building an ASP.NET Web Forms or ASP.NET MVC application. read more...

add a comment |category: |Views: 845

tags: another

ASP.NET MVC Tip #26 – Create a Lightweight Control View Engine (weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 9 months ago

In this tip, Stephen Walther shows you how to create a custom ASP.NET MVC view engine that supports lightweight, declarative controls. He shows you how to create both simple controls and controls that display database data. He also shows you how to test the rendered output of the lightweight controls. read more...

add a comment |category: |Views: 28

tags: another

ASP.NET MVC Tip #25 – Unit Test Your Views without a Web Server(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this tip, Stephen Walther demonstrates how you can unit test ASP.NET MVC views without running a Web server. He shows you how to unit test views by creating a custom MVC View Engine and a fake Controller Context. read more...

add a comment |category: |Views: 12

tags: another

ASP.NET MVC Tip #21 – Fake the Data Context (weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this tip, Stephen Walther shows you how to unit test your data access code by faking the DataContext with an in-memory DataContext. read more...

add a comment |category: |Views: 36

tags: another

ASP.NET MVC Tip #20 – How to Unit Test Data Access(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this tip, Stephen Walther demonstrates how you can write unit tests for MVC controller actions that access a database. He shows you how to create a base unit test class that you can use to unit test your LINQ to SQL controller action code. read more...

add a comment |category: |Views: 19

tags: another

ASP.NET MVC Tip #19 – Use the nVelocity View Engine (weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this tip, Stephen Walther demonstrates how you can use the nVelocity view engine, instead of the normal Web Forms view engine, when displaying views from an ASP.NET MVC application. read more...

add a comment |category: |Views: 213

tags: another

ASP.NET MVC Tip #18 – Parameterize the HTTP Context (weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

Context is the enemy of testability. In this tip, Stephen Walther demonstrates how you can eliminate, once and for all, the HTTP Context from an ASP.NET MVC application by creating a custom Action Invoker and Controller Factory. read more...

add a comment |category: |Views: 22

tags: another

ASP.NET MVC Tip #16 – Create ASP.NET MVC Macros(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

Real programmers use the Command window. In this tip, Stephen Walther demonstrates how you can create new ASP.NET MVC project items by firing off macro commands from the Visual Studio 2008 Command window. read more...

add a comment |category: |Views: 19

tags: another

ASP.NET MVC Tip #14 – Create a Template Helper Method(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this tip, Stephen Walther shows you how to create and use templates in the MVC framework that you can use to display database data. He shows you how to create a new MVC Helper method named the RenderTemplate() method. read more...

add a comment |category: |Views: 52

tags: another

ASP.NET MVC Tip #13 – Unit Test Your Custom Routes (weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this tip, Stephen Walther demonstrates how you can create unit tests for custom routes that you define for your ASP.NET MVC application. He shows you how to test custom routes by faking the HTTP Context. read more...

add a comment |category: |Views: 15

tags: another

ASP.NET MVC Tip #12 - Faking the Controller Context(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this tip, Stephen Walther shows you how to test ASP.NET intrinsics when building unit tests for an ASP.NET MVC application. He shows you how to create a standard set of fake objects that enables you to fake the current user, the current user roles, the request parameters, session state, and cookies. read more...

add a comment |category: |Views: 227

tags: another

An Introduction to the xUnit.net Testing Framework(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

In this blog entry, Stephen Walther demonstrates how to use the xUnit.net testing framework while building an ASP.NET MVC application. He discusses how to build unit tests for controller actions that perform database access. read more...

add a comment |category: |Views: 141

tags: another

ASP.NET MVC Tip #11 - Use Standard Controller Action Names(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 10 months ago

ASP.NET MVC Tip #11 – Use Standard Controller Action Names by swalther In this tip, I recommend that you use standard names for your controller actions in order to make your code more transparent to other developers. I propose action names that will work with the default route table and that will work with both C# and VB.NET. read more...

add a comment |category: |Views: 33

tags: another

ASP.NET MVC Tip #6 Use the PRG Pattern when Submittng a Form(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 11 months ago

In this tip, Stephen Walther explains why you should call the RedirectToAction() method after submitting form data instead of returning a view. read more...

add a comment |category: |Views: 263

tags: another

ASP.NET MVC Tip #5 - Create Shared Views(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 11 months ago

In this tip, Stephen Walther explains how to create shared views for controller actions. A shared view can be used with multiple controllers. In particular, I explain how to create shared views for displaying and editing database data. read more...

add a comment |category: |Views: 70

tags: another

ASP.NET MVC Tip #4 - Create a Data Controller Base Class(weblogs.asp.net)

submitted by swaltherswalther(975) 3 years, 11 months ago

In this tip, Stephen Walther discusses how you can create a custom controller base class that exposes actions for performing common database operations such as displaying, inserting, updating, and deleting data. read more...

add a comment |category: |Views: 36

tags: another