adapted mock instanciation since it seems the build server has got a problem with Mock.Of<T>()