Using Entity Framework 4.0 CTP

In this post I will take a look at the new features in the next release of entity framework. Primary feature set is centered around what is commonly referred to as “Code First” approach to Entity Framework.  With code first approach you write the code first, then entity framework runtime dynamically figures out how to …

Continue reading ‘Using Entity Framework 4.0 CTP’ »

Back to Windows Phone 7 Database

Since Microsoft now released RTM version of their tools for Windows Phone 7 development, I updated my phone database project to the latest version as well.  You can find this project here : http://winphone7db.codeplex.com/. I added also a new feature – ability to create tables with data on desktop, then load them into the database …

Continue reading ‘Back to Windows Phone 7 Database’ »

Using WinDbg to Find Memory Leaks in Silverlight Applications

In light of recent issues with memory leaks in Silverlight and the fact that service pack that was supposed to address these issues was released last week, I found myself working on an application, trying to confirm that it does not leak any longer.  To simplify my approach, I created a destructor for my view …

Continue reading ‘Using WinDbg to Find Memory Leaks in Silverlight Applications’ »

Modular Silverlight Development, App.xaml, Blend and Resources

As I was working on one of my personal learning projects, I encountered a small problem. The project was Prism based with multiple modules.  I wanted to isolate my resource files, so I created a separate project that included my XAML resources, such as styles.  This approach works just fine by using merged dictionaries in …

Continue reading ‘Modular Silverlight Development, App.xaml, Blend and Resources’ »

Encryption in Silverlight and .NET Applications

Today I would like to cover a specific use case that came up a few times in Silverlight applications I wrote.  For example, I wand a user to enter some sensitive information, encrypt it in Silverlight client, transfer it over to the server, then decrypt it and perforation some operations on that data. First step …

Continue reading ‘Encryption in Silverlight and .NET Applications’ »

XAML Intellisense Stops Working in Visual Studio 2010

Today as I was working on a Silverlight application in Visual Studio 2010, XAML Intellisense just stopped working for me.  Quick internet search yielded no useful results, so I was to figure this out on my own.  Just to test I created a brand new application, and Intellisense was fine there.  Logical answer was that …

Continue reading ‘XAML Intellisense Stops Working in Visual Studio 2010’ »

Unit Testing Silverlight Applications – UI testing and Test Automation

In my last post I am going to cover the last two topics I set out to address.  The first topic is UI testing.  What unit test frameworks lack sometime is the actually UI testing.  What I mean by that is for example, click on a button, then see what happens.  In case of Silverlight, …

Continue reading ‘Unit Testing Silverlight Applications – UI testing and Test Automation’ »

Unit Testing Silverlight Applications – Mocking

In this post I will explore ability to mock various Silverlight classes in order to enable mocking in your unit tests.  There is a variety of mocking frameworks available, but I will pick one for my testing – Moq.  You can download the framework here,  Once this is done, I need to add some references …

Continue reading ‘Unit Testing Silverlight Applications – Mocking’ »

Unit Testing Silverlight Applications – Asynchronous Testing

In this post I will describe how to create asynchronous unit tests for Silverlight applications.  First of all, I’d like to point out that any communication with a server component in Silverlight must be asynchronous.  Reason being is that if communication was synchronous and the remote service was not responding, browser which host Silverlight application …

Continue reading ‘Unit Testing Silverlight Applications – Asynchronous Testing’ »