I will extend my colleague’s blog post series regarding RadDomainDataSource control with an example how to create simple CRUD (Create, Read, Update and Delete) application. For more information how to load data initially you can take a look at this blog post. Along with RadDomainDataSource control Telerik provides codeless solution for CRUD operations powered by WCF RIA Services. The solution is a combination between RadGridView and RadDomainDataSource. First let’s create a default Silverlight project as following: Next step is to create ADO.NET Entity data model called Northwind.edmx. For the sake of the example I’ll create this entity model with a Northwnd.mdf...
[Cross Posted from http://www.skimedic.com/blog] Mocking Exceptions When writing unit tests, it is important to cover not only the successful execution path (commonly referred to as the “Happy” path), but also test the code that gets executed when things don’t go right (commonly referred to as the “Unhappy” path). Testing for situations where services or databases are unavailable as well as erroneous user input are important aspects of ensuring quality in software. Remember, if you don’t test it, your users will! We modify the LoginUser method to throw a custom exception when there is an exception is thrown from the LoginService. To test this,...
will continue the series of blog posts about RadDomainDataSource with the most important one – the one about loading data. If you are not familiar with RadDomainDataSource then you should go back and read my introductory blog post. Let us move straight to the data load lifecycle. Triggering a Load A load operation can be triggered in two ways. You can either call the Load method explicitly or you can rely on the AutoLoad functionality, which I will explain later in this post. Building The Query After a load has been requested a query based on user input is constructed on the client. This query tells the...
I am very pleased to announce the introduction of the new WebUI Test Studio Support Knowledgebase. Our support engineer's have been hard at work adding valuable content. Some of the new article topics include: Troubleshooting Misaligned Element Highlighting Creating a Scheduling Server Manually Activating your WebUI Test Studio License Repeating Actions for Multiple Users with Login (using the Test As Step feature) Many more to come! We encourage you to bookmark this site and check back often - it will be a great resource for all things WebUI!
[Cross Posted from http://www.skimedic.com/blog] Sequential Mocking One of the trickiest types of code to mock out for testing is recursive methods. In a typical recursion, the same method is called multiple times, and each time there are typically different parameters passed in, and different return values. To easily handle this, JustMock gives you two options: Adding InSequence() to each arrange Chaining Returns() calls together. To illustrate the first option, look at the following test: [Test]
public void Show_Sequential_InSequence_Arrange_Option()
{
var service = Mock.Create<IService>();
Mock.Arrange(() => service.GetSum(Arg.AnyInt, Arg.AnyInt))
.Returns(4).InSequence();
Mock.Arrange(()...
am happy to announce that we have added a new data control to our Silverlight portfolio with one of our latest internal builds. The control will have its official premiere with the upcoming 2010 Q3 Service Pack 1, which is expected in early January. With the release of this service pack you will get access to all of RadDomainDataSource online examples. Since the first version of RadDomainDataSource is now 100% feature complete and has already passed QA, we have decided that we might as well share it with you as a small Christmas present. RadDomainDataSource is a Silverlight control that provides the missing...
This year we at Telerik wanted to come up with a special way to spread the holiday spirit and send our best wishes to our customers. We just couldn’t think of a better way to wish you joyful holidays than to do it through our favorite .NET Ninja, but this time – his holiday edition. Check out this cool holiday card, customize the Holiday Ninja, write what you want to get for the holidays and share it with your friends on Facebook and Twitter! We hope you get what you wanted this year! Happy Holidays from Telerik!...
In early 2011 Telerik is heading to India again, this time to organize its own 1-day event in Pune, India. The free seminar on Agile Development and Testing will take place on January 18 (9am-5pm) at the Mahratta Chamber of Commerce in Pune. The training day will be split in two sessions that will respectively cover implementing your own Agile development processes and Agile testing. If you are a developer/development manager using the Microsoft .NET platform or you are interested in learning how to make your testing efforts more efficient, than make sure to show up on Tuesday, January 18...
This week we published the latest official release of our automated testing tools – 2010 Q3 Service Pack. This release enhances product stability by introducing a lot of improvements and bug fixes in many areas. I’d like to focus this post on the latest optimizations and important bug fixes in the Test Scheduling feature. I’ll start with the QA Edition changes. Project Tab Now you can find the following Scheduling commands in the Project Tab.