Telerik blogs
  • Productivity Testing

    Sequential and Recursive Mocking with JustMock Free Edition

    [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(()...
    May 27, 2021 3 min read
  • Productivity Testing

    Introducing JustMock Free Edition

    [Cross posted from .NET Musings] Technorati Tags: mocking,.NET,Testing,TDD,BDD,JustMock,Telerik Today Telerik launched a free edition of it’s commercial mocking tool, JustMock Free Edition.  The commercial version of JustMock has been out now for a while, and brings incredible power to the table, such as mocking sealed and static classes, non-public members and types, as well as many more features.  For more information on the commercial version of JustMock, see  http://www.telerik.com/products/mocking.aspx. I do a lot of testing.  I am addicted to TDD/BDD, and can’t live without a mocking tool. The new (or “greenfield”) code that I develop is based on interfaces, SOLID, etc., and I don’t always...
    May 27, 2021 3 min read
  • Release

    SP1 of Telerik Reporting Q2 2010 released; new videos on their way

    A few days ago we released the Service Pack 1 of Telerik Reporting Q2 2010. Although this is the first Service Pack for Telerik Reporting for this release, it is quite impressive in the amount of improvements it contains in all product fronts - VS report designer, data source components, report rendering and processing, and in the report viewers. The shortlist of the most important fixes includes better medium trust support, addressed Table/Crosstab design time issues related to TableGroup.GroupKeepTogether, KeepTogether, and repeating GroupHeader section overlapping other sections. The improvements include SqlDataSource support for stored procedures under MySQL, support for the ODP.NET ADO.NET provider,...
    May 27, 2021 1 min read
  • People

    It’s Been A Long Run

    [Cross posted from .NET Musings]  I worked my first paying job involving computers in 1984.  After a degree in computer science from the school of engineering at Washington University in St. Louis, I started quite the run as a computer consultant.  My first jobs involved building custom computers and networks and programming the computers!  I’ve had a fabulous career as a consultant, and worked with a lot of fantastic people.  But I realized a while ago that I wanted to be something else when I grow up.  I just had no idea what that was.  In 1995, I started as a volunteer for...
    May 27, 2021 4 min read
  • Web

    Master-Details with RadGridView for Silverlight 4, WCF RIA Services RC2 and Entity Framework 4.0

    I have prepared a sample project with the Silverlight 4 version of RadGridView released yesterday. The sample project was created with Visual Studio 2010, WCF RIA Services RC 2 for Visual Studio 2010, and ADO.NET Entity Framework (.NET 4). I have decided to use the SalesOrderHeader and SalesOrderDetails tables from the Adventure Works Database, because they provide the perfect one-to-many relationship: I will not go over the steps for creating the ADO.NET Entity Data Model and the Domain Service Class. In case you are not familiar with them, you should start with Brad Abrams’ series of blog posts and read this blog after that. To enable the...
    March 05, 2025 2 min read