private Application CreateApplication(params Feature[] features)
 {
     var application = new Application(Mock.Of<ISettings>());
     foreach (var feature in features) application.AddFeature(feature);
     application.Configure();
     return application;
 }