Alexandr Vitenberg's blog

Layer-based automated testing, part 3: emulating request/response scenarios in tests

This article is about using BDD and SpecFlow for testing request/response scenarios like message boxes, modal windows, interaction with peripheral devices and similar cases. I'm using the sample from previous article but in fact this article is valid for every testing system using BDD and SpecFlow.

Layer-based automated testing, part 2: registration reusable in tests

Previous article contained some general discussion on where the layer-based approach to testing is applicable. Now, let's get into details of implementation. To be able to test layers, you'll need to be able to easily separate them one from another, and easily reuse them as a whole from different entry points (from actual application, from tests, etc).

Layer-based automated testing, part 1: choosing the right testing approach

This is a series of articles about building an effective testing system of larger-scale code-driven tests for your .Net application. It shows how to use such concepts like IoC, MVVM, BDD, mocking and asynchronous programming together to minimize efforts on developing new tests and supporting old ones. Also it gives a working sample of such test-friendly architecture. Of course this approach is not applicable for all cases, but it has proven its effectiveness for many existing scenarios.

Treatment of spaces-only input in ASP.NET MVC

I guess every framework has some kind of bizarre "default" behavior which can cause problems and will require thorough research and experimenting to understand what's going on. For ASP.NET MVC, one of the most stunning examples is its treatment of space symbols in input. It's a real pity that to understand how to deal with this (quite common) problem properly, one needs to do a lot of experimenting and gathering bits and pieces of information from different sources. This article is an attempt to collect this information and express it in more or less coherent way.

Future of Silverlight: is this technology outdated already?

From the times of release of Silverlight 2 in 2007, Silverlight was one of Microsoft's highest-prio technologies and has grown into a powerful framework allowing effective cross-platfrom development of rich Internet application using such well-respected tools like Microsoft Visual Studio and such popular languages as C# and XAML. On the other hand, there are limitations to this power.

Securing entity properties with WCF RIA Services

Although WCF RIA Services provides a pretty good way to support entity-level security, property-level security is not among the list of features of this framework, so you'll need to do some custom additional work to make your application support it. Of course this problem was discussed by the community before, but existing approaches are not without problems, so I guess there's nothing wrong to return to this discussion and show how this task may be solved in a simple and efficient way.

Specifying collections as data source in Design view

One of the nicest design-time features of WPF and Silverlight is the ability to specify data in design time, allowing your designers to work with controls already filled with data without starting the whole application. However, there's not much hints on how to work with it for slightly more complex and non-trivial scenarios, for example when binding to a collection.

DataGrid highlighting behavior: version for Silverlight 4

Silverlight 4 allows data binding for any DependencyObject, so DataGrid highlighting behavior from one of my previous articles could be written for Silverlight 4 much easier, without the help of BindingListener class. In fact, the previous version won't compile for Silverlight 4 at all, because the whole Expression Blend samples library does not work for Silverlight 4 and is no longer supported. Much simpler and elegant version of DataGrid highlighting behavior is in attachment.

DataGrid highlighting behavior

Yet another attached behavior for Silverlight 3 that may be quite handy - one that dynamically highlights text inside DataGrid. It does not require changes in DataGrid itself - just attach the DataGridHighlightingBehavior to your DataGrid and tell it the substring you want to highlight, it'll do the rest.

Bindable event-driven MessageBox for Silverlight

Here we present an approach allowing to standardize MessageBox-like scenarios, making them much more designer- and test-friendly.

Syndicate content