Telerik blogs

Latest

  • Productivity

    Why Mocking Matters

    How does mocking benefit me?  That’s a question I hear a lot as I travel around the world giving talks.  So before we dive into how to use a mocking tool like JustMock, let’s discuss why this is important and the benefit that mocking provides over other techniques like Fakes. In my post on Why SOLID Matters, we refactored a small piece of code to be more SOLID.  Granted, it was a simplistic example, but good for illustrating several key points on SOLID.  We will continue using the same code to discuss the benefits of Mocking.  As a refresher, we ended...
    May 27, 2021 10 min read
  • Productivity

    Telerik OpenAccess ORM Meets ASP.NET Web API

    Microsoft has recently released their latest technology helping the N-Tier development – the ASP.NET Web API framework. If you haven’t had the opportunity to experience this new platform built around the HTTP protocol, here we try to address some of the key points about Web API services as answers to the most common questions you might be already asking:  What is Web API? ASP.NET Web API is the latest platform provided by Microsoft for creating HTTP-based services.  When can I use Web API? The Web API framework is not limited to any kind of architecture. You can build REST services on top of it or...
    May 27, 2021 3 min read
  • Productivity Testing

    Getting Started with NUnit, NUnit.Should, and JustMock

    Technorati Tags: TDD,Test Driven Development,JustMock,JustCode,NUnit,NUnit.Should,Mocking Before diving into mocking with JustMock, it’s important to note that JustMock is a mocking framework, and not a testing framework.  Test frameworks allow for creating Test Fixtures, which are .NET classes decorated with the appropriate attributes so they are picked up by a Test Runner.  Test are created within a Test Fixture by writing methods (with the appropriate attributes) that exercise your code (also referred to as the System Under Test) and report the results.  Test Runners are programs that will run your tests.  There are many free testing frameworks available for .NET developers, including MSTest (included...
    February 01, 2022 12 min read
  • Productivity

    Telerik OpenAccess ORM - Database Naming Settings

    We, the OpenAccess ORM team, believe that an ORM solution should not only be easy to use and time-saving, but also flexible enough to reflect your needs. For instance, it is important that the names we generate comply exactly with your conventions, rather than being enforced. For that purpose we have provided the Naming Settings dialog a while ago, offering various naming options for the model on Class, Property and Field level. Now we are proud to present the new flexibility we have exposed for generating the names of the tables and columns in your database - the Database Names...
    May 27, 2021 2 min read
  • Productivity Testing

    Editing a Verification for an IF Conditional

    Test Studio’s IF Conditional steps are extraordinarily handy feature which enable you to handle branching in your tests based on specific conditions. There are a number of scenarios where this can ensure your tests are a bit more robust—logging in to your system if needed is one example. (Note: There are also many situations where I recommend against using conditionals. Don’t use them to conflate separate test cases. Keep your test cases simple, specific, and granular!) Here’s a tip I just learned today: Editing an IF conditional’s verification. This is nice feature because it allows you to update your conditional ...
    May 27, 2021 1 min read