private static void CreateFile(AbstractConfigurationDetails configuration, IFileSystem fileSystem)
 {
     var filePath = System.IO.Path.Combine(configuration.UserDataDirectory, ConfigurationFileName);
     using (var file = fileSystem.GetFile(filePath).MustExist().OpenWrite())
         file.Write(DefaultFileContents.ToBytes());
 }
 public CruiseControlNotificationRegistration(AbstractConfigurationDetails configuration, IFileSystem fileSystem)
 {
     _configuration = configuration;
     _fileSystem = fileSystem;
 }