ploeh blog

Mark Seemann's discontinued .NET blog.

May, 2007

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

    Code As Dependency Configuration

    • 13 Comments
    In his article on Inversion of Control and Dependency Injection , Martin Fowler has a quite interesting section towards the end where he talks about how to configure loosely coupled systems. One of his points is that in some cases, it makes more sense...
  • ploeh blog

    Testing Against The Passage of Time

    • 7 Comments
    This is the fourth in a small series of posts about testing against non-determinism. In this installation, I'm going to cover the passage of time. In my former post , I demonstrated how you can use the Provider Injection pattern to decouple your test...
  • ploeh blog

    Testing Against The Current Time

    • 6 Comments
    This is the third in a small series of posts about testing against non-determinism. In this installation, I'm going to cover how to deal with the current time or date. If you have logic that is dependent of the current time or date, test results will...
  • ploeh blog

    Testing Against Guids

    • 5 Comments
    This is the second in a small series of posts about testing against non-determinism. In this installation, I'm going to cover Guids. Despite sharing some similarities with random numbers, Guids actually turn out to be a lot less difficult to use in...
  • ploeh blog

    Reasons For Isolation

    • 5 Comments
    Object-oriented applications above some level of complexity are almost always modelled as a layered architecture. While the typical three-layer architecture remains the most widely known, n-layer architecture is also often utilized. Here's a typical design...
  • ploeh blog

    Authorizing Services

    • 4 Comments
    If you look at the default authorization model for WCF, you will notice that it expects you to implement centralized authorization. While centralized and pluggable authentication makes a lot of sense to me, that's not the case with authorization. Does...
  • ploeh blog

    Testing Against Non-Determinism

    • 4 Comments
    Although computers tend to be rather deterministic in nature, you will sometimes have to deal with concepts that are de-facto non-deterministic. These include, but are not limited to: Random numbers. These are typically generated by a random number...
  • ploeh blog

    Testing Against Randomness

    • 1 Comments
    This is the first in a small series of posts about testing against non-determinism. In this installation, I'm going to cover randomness. When code paths are selected at random, the outcome of a unit test may not be deterministic. Consider this example...
Page 1 of 1 (8 items)