ploeh blog

Mark Seemann's discontinued .NET blog.

Blog - About

About ploeh blog

Mark Seemann was a software development engineer working for Microsoft in Copenhagen, Denmark. This was his (professional) blog. Please visit the current ploeh blog instead.

All postings are provided "AS IS" with no warranties, and confer no rights. Any opinions expressed in this blog are solely those of the author and not official positions of Microsoft Corporation.

  • ploeh blog

    N-Tier Synchronization With The Sync Framework And WCF ChannelFactory (Part 2)

    • 2 Comments
    In my previous post , I discussed using ServerSyncProviderProxy with ChannelFactory<T> , and explained how you can get up and running with that combination. While the described modification is definitely necessary, there's at least one other caveat...
  • ploeh blog

    N-Tier Synchronization With The Sync Framework And WCF ChannelFactory (Part 1)

    • 2 Comments
    Sync Services for ADO.NET 2.0 allows a proper n-tier architecture where you can synchronize a client with a back-end data store via a web service. To do this, your web service must expose a simple interface consisting of four operations. As described...
  • ploeh blog

    An Overview of Unit Testing Duplex WCF Services and Clients

    • 4 Comments
    In the last couple of posts, I've demonstrated how to isolate implementation from WCF contract definition and behavior in a duplex communication scenario. These posts have been rather detailed, so it occurred to me that you might benefit from an overview...
  • ploeh blog

    Unit Testing Duplex WCF Clients

    • 1 Comments
    In my previous post , I explained how to unit test a WCF service with callbacks. Since the scenario involves duplex communication, the service is also a client, and vice versa, so it's only reasonable to look at the 'client' as well, to examine how to...
  • ploeh blog

    Unit Testing Duplex WCF Services

    • 5 Comments
    One of my readers recently asked me about unit testing WCF services when they have callbacks. Given that I strongly believe that you should attempt to implement your services without referencing WCF at all , but duplex WCF services require you to get...
  • ploeh blog

    Modifying Behavior of WCF-Free Service Implementations

    • 2 Comments
    In my previous post , I explained how to implement a WCF service without referencing WCF. In simple cases, it works as described, but you may soon find yourself in a situation where you need to modify the behavior of the service when it's hosted by WCF...
  • ploeh blog

    Implementing WCF Services Without Referencing WCF

    • 4 Comments
    More than a year ago, I wrote my first post on unit testing WCF services . One of my points back then was that you have to be careful that the service implementation doesn't use any of the services provided by the WCF runtime environment (if you want...
  • ploeh blog

    Speaking in ANUG

    • 10 Comments
    Aarhus .NET User Group has been so kind to invite me to come and give a session on June 25th, 2008, and I've elected to speak about TDD and Installers, a subject that regular readers of this blog would correctly surmise is dear to my heart . Read more...
  • ploeh blog

    Test-Specific APIs With Extension Methods

    • 1 Comments
    Writing maintainable tests that clearly communicate intent can sometimes be a challenging undertaking. Ideally, a unit test suite should act as executable documentation and be robust when faced with refactoring of the SUT . Some software lends itself...
  • ploeh blog

    Declarative Use of Custom SecurityTokenParameters

    • 5 Comments
    It's not the first time I've stated this, but one of the reasons I love WCF is that it's so wonderfully extensible. You can even implement your own custom security token, as this article explains . The only problem with this article is that it uses imperative...
  • ploeh blog

    Unit Testing Anti-Pattern #2: Not Covering Bugs In Your Tests With Tests

    • 0 Comments
    Roy just posted a unit testing anti-pattern based on his personal experience. I'd like to follow up with one from my own personal experience: A few days ago, while working with one of our unit test suites, I discovered that one of my test utility classes...
  • ploeh blog

    Vote For Better TDD Support in Visual Studio 2008

    • 1 Comments
    Eric Jorgensen has created a Microsoft Connect item asking for better TDD support in Visual Studio 2008 . If you also miss the green (sometimes red) progress bar and other UI elements of NUnit and similar tools, and think that Visual Studio should have...
  • ploeh blog

    Automatically Generating LINQ To SQL Models From T-SQL

    • 4 Comments
    With LINQ to SQL, a couple of questions quickly arise: Since you can create a data model directly in Visual Studio, where's your authoritative definition of the database? If you generate a data model from your database, how do you maintain the...
  • ploeh blog

    Visual Studio 2008 PowerShell

    • 4 Comments
    Ever since I first saw a demo of PowerShell some five years ago, I've been wanting to use it for development work; such as automating code generation or whatever other task for which small scripts are needed. It's such a powerful environment, and I simply...
  • ploeh blog

    Leapling

    • 4 Comments
    Something's been bugging me for all of March. Okay, so maybe not all the time, but it keeps coming back to me. Back at February 29, I took my daughter to kindergarten as always. In one of the other rooms, a sign (as well as flags and such) proclaimed...
  • ploeh blog

    Provider Injection With Funcs

    • 2 Comments
    Some of the new stuff in .NET 3.5 makes it much easier to implement Provider Injection . If you take a close look at the provider definition, you may discover that when used with Provider Injection, only a single method (Create, or something similarly...
  • ploeh blog

    CertificateInstaller

    • 1 Comments
    In what is increasingly beginning to look like a series of posts on using Installers for fixture setup , this time I'll be revisiting my old post on performing integration testing with certificates . As it turns out, installing and subsequently removing...
  • ploeh blog

    Typemock

    • 15 Comments
    Roy recently posted his thoughts on Typemock - whether it's too powerful and will kill TDD. His conclusion seems to be a confident no , and he argues well, but I have to disagree with some of his points. However, first of all, I have to state that...
  • ploeh blog

    Why Federation Matters

    • 0 Comments
    Ayende recently griped about the complexity of Federation and WCF . While I hope I have already communicated my (partial) consent, as well as some additional remarks on the cause of this in the comments, a comment by s ig prompted me to write this post...
  • ploeh blog

    New Job

    • 1 Comments
    When I start working April 1 after my parental leave, I'm not going back to my old job as a consultant for Microsoft Services . Instead, I've accepted Christian 's old position in the Mobile Applications Group in Microsoft Development Center Copenhagen...
  • ploeh blog

    Page.User Population From Custom Authenticators For ASP.NET

    • 1 Comments
    One of my readers have asked me how to create a custom authenticator for ASP.NET and populate Page.User accordingly. Basically, the scenario is that they have a third-party service that performs authentication and returns the user's identity and other...
  • ploeh blog

    Data Access Component Testing Redux

    • 8 Comments
    About a year ago, I wrote about data access component testing using a custom helper class for setting up a shared fixture . Since then, I've standardized on using Installers for fixture setup whenever it makes sense, which it does in this case. Instead...
  • ploeh blog

    SqlScriptListInstaller

    • 3 Comments
    The last of a series of SQL Server-related database Installers is a little helper that simply makes it easier to bundle several SQL scripts together as part of a single Installer package. Instead of mixing several SqlScriptInstallers together with other...
  • ploeh blog

    SqlScriptInstaller

    • 2 Comments
    In my previous post I described a general-purpose Installer that can be used to create a SQL Server database during installation (and delete it again during uninstallation). As promised, this post picks up where the other stopped to describe another Installer...
  • ploeh blog

    SqlDatabaseInstaller

    • 4 Comments
    Installers provide a consistent way of implementing automated setup logic for an application, and as I previously wrote, they also work admirably well for setting up test fixtures . The BCL, however, only contains a limited amount of pre-built Installers...
Page 2 of 6 (132 items) 12345»