public static IEnumerable <string> GetHBMFilesFromCSProj(CSProjFile csproj, IFileController controller)
 {
     return(csproj
            .GetEmbeddedResources(f => f.EndsWith(".hbm.xml", StringComparison.OrdinalIgnoreCase))
            .Select(f => controller.ToAbsolutePath(f, csproj.FilePath))
            .ToList());
 }
 public TransactionalStorageController(
     IStorageController <string> storageController,
     IFileController fileController)
 {
     this.storageController = storageController;
     this.fileController    = fileController;
 }
Exemple #3
0
 /// <param name="fileController"></param>
 /// <param name="progressHelper">The TaskProgressHelper to use to report progress and cancel the operation.</param>
 /// <param name="projectInfo">The Project we are generating files from.</param>
 /// <param name="loader"></param>
 public GenerationHelper(ITaskProgressHelper <GenerateFilesProgress> progressHelper, ITemplateLoader loader, IWorkbenchProject projectInfo, IFileController fileController)
 {
     _Loader         = loader;
     _ProgressHelper = progressHelper;
     _Project        = projectInfo;
     _FileController = fileController;
 }
 public ApiController(
     IQueryForMoviesByTitle queryForMoviesByTitle,
     IFileController fileController)
 {
     _queryForMoviesByTitle = queryForMoviesByTitle;
     _fileController        = fileController;
 }
 public SelectMatchedMovieCommand(
     ICommonDataViewModel commonData,
     IFileController fileController)
 {
     _commonData     = commonData;
     _fileController = fileController;
 }
Exemple #6
0
        IFileController deleteFile; //Delete the file

        public Form1()
        {
            InitializeComponent();
            fileCheck = new FileExistsCheck();
            fr1       = this;
            fileCheck.ControlFile();
        }
Exemple #7
0
        public void Initialize(IFileController _fileController, UpdateConfiguration _fileConfig)
        {
            this.fileController = _fileController;
            this.fileConfig     = _fileConfig;

            this.fileController.FileRequestReceived += new CbFileRequestReceived(fileController_FileRequestReceived);
        }
Exemple #8
0
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock <IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.FindAllFilesLike("Folder", "*.apiext.xml")).Return(new string[0]);
 }
        public Form1()
        {
            AddressManager am = new AddressManager();
            EstateManager  em = new EstateManager();

            _fileController    = new FileController(am, em);
            _estateController  = new EstateController(em);
            _addressController = new AddressController(am);

            InitializeComponent();
            comboBoxCountries.DataSource              = Enum.GetValues(typeof(Countries));
            comboBoxCountry.DataSource                = Enum.GetValues(typeof(Countries));
            comboBoxCountryChange.DataSource          = Enum.GetValues(typeof(Countries));
            comboBoxLegalForm.DataSource              = Enum.GetValues(typeof(LegalForm));
            comboBoxChangeLegalForm.DataSource        = Enum.GetValues(typeof(LegalForm));
            comboBoxAddLegalForm.DataSource           = Enum.GetValues(typeof(LegalForm));
            comboBoxType.DataSource                   = _estateController.GetEstateTypes();
            comboBoxAddType.DataSource                = _estateController.GetEstateTypes();
            comboBoxChangeType.DataSource             = _estateController.GetEstateTypes();
            comboBoxCategory.DataSource               = _estateController.GetEstateCategories();
            comboBoxEstateObject.DataSource           = _estateController.GetAllEstates();
            comboBoxChangeEstateId.DataSource         = _estateController.GetAllEstates().Select(e => e.EstateId).ToList();
            comboBoxAddAddressToEstate.DataSource     = _addressController.GetAllAddresses();
            comboBoxChangeAddressForEstate.DataSource = _addressController.GetAllAddresses();
            comboBoxChangeAddress.DataSource          = _addressController.GetAllAddresses();
        }
Exemple #10
0
        IFileController save;      //Save edited file

        public Form3()
        {
            InitializeComponent();
            load  = new EditLoadFiles();
            chain = this;
            load.ControlFile();
        }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     fileController.Stub(f => f.ToAbsolutePath("temp-compile", "Folder\\Project.aad")).Return("Folder\\temp-compile");
     fileController.Stub(f => f.ToAbsolutePath("debug.wbproj", "Folder\\Project.aad")).Return("Folder\\debug.wbproj");
     fileController.Stub(f => f.ToAbsolutePath("file.dll", "Folder\\Project.aad")).Return("Folder\\file.dll");
     fileController.Stub(f => f.ToAbsolutePath("test gen", "Folder\\Project.aad")).Return("Folder\\test gen");
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.FindAllFilesLike("Folder", "*.apiext.xml")).Return(new[] { "Folder\\Specs_For_Project_Loading__ApiExtensions.ApiExtensionTest.apiext.xml" });
     fileController.Stub(f => f.ReadAllText("Folder\\Specs_For_Project_Loading__ApiExtensions.ApiExtensionTest.apiext.xml")).Return(ExpectedXml);
 }
        public void SetUp()
        {
            fileController = MockRepository.GenerateMock <IFileController>();
            fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
            fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(true);

            ExtensionMethod = new ApiExtensionMethod(typeof(ApiExtensionTest).GetMethod("Method1"));
        }
Exemple #14
0
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock <IFileController>();
     outputFile     = new OutputFile("ROOT", OutputFileTypes.File, "aaaa", "1")
     {
         StaticFileIterator = typeof(string)
     };
 }
Exemple #15
0
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock <IFileController>();
     outputFile     = new OutputFile("ROOT", OutputFileTypes.File, "aaaa", "1")
     {
         StaticFileSkipFunctionName = "func1_Skip"
     };
 }
        public void SetUp()
        {
            fileController = MockRepository.GenerateMock<IFileController>();
            fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
            fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(true);

            userOption = new UserOption("var", "Gen", typeof(string), "test-text", "test-description", new string[0], "dv-body", typeof(bool), "validator body", "return true;", true);
        }
        }//end default constructor

        /// <summary>
        /// Full constructor
        /// </summary>
        /// <param name="pathSiteList">Path to the SiteList file</param>
        /// <param name="pathGuidCache">Path to the GuidCache file</param>
        public RssController(string pathSiteList, string pathGuidCache)
        {
            _fileController = new FileController();
            _xmlController  = new XmlController();

            this.PathSiteList  = pathSiteList;
            this.PathGuidCache = pathGuidCache;
        }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock <IFileController>();
     fileController.Stub(f => f.ToAbsolutePath("temp-compile", "Folder\\Project.aad")).Return("Folder\\temp-compile");
     fileController.Stub(f => f.ToAbsolutePath("debug.wbproj", "Folder\\Project.aad")).Return("Folder\\debug.wbproj");
     fileController.Stub(f => f.ToAbsolutePath("file.dll", "Folder\\Project.aad")).Return("Folder\\file.dll");
     fileController.Stub(f => f.ToAbsolutePath("test gen", "Folder\\Project.aad")).Return("Folder\\test gen");
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock <IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.FindAllFilesLike("Folder", "*.function.xml")).Return(new[] { "Folder\\Function.function.xml" });
     fileController.Stub(f => f.ReadAllText("Folder\\Function.function.xml")).Return(expectedXml);
 }
        public void SetUp()
        {
            fileController = MockRepository.GenerateMock <IFileController>();
            fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
            fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(true);

            userOption = new UserOption("var", "Gen", typeof(string), "test-text", "test-description", new string[0], "dv-body", typeof(bool), "validator body", "return true;", true);
        }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock <IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.FileExists("Folder\\Outputs.xml")).Return(true);
     fileController.Stub(f => f.CanReadFile("Folder\\Outputs.xml")).Return(true);
     fileController.Stub(f => f.ReadAllText("Folder\\Outputs.xml")).Return(JustRootFolder);
 }
        /// <summary>
        /// Full constructor
        /// </summary>
        /// <param name="pathSiteList">Path to the SiteList file</param>
        /// <param name="pathGuidCache">Path to the GuidCache file</param>
        public RssController(string pathSiteList, string pathGuidCache)
        {
            _fileController = new FileController();
              _xmlController = new XmlController();

              this.PathSiteList = pathSiteList;
              this.PathGuidCache = pathGuidCache;
        }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.FindAllFilesLike("Folder", "*.useroption.xml")).Return(new[] { "Folder\\var.useroption.xml" });
     fileController.Stub(f => f.ReadAllText("Folder\\var.useroption.xml")).Return(expectedXml);
 }
Exemple #24
0
        public virtual IGraph ParseFile(string fName, ProvInfo prov, IFileController fileController, out List <Exception> Errors, MainWindowViewModel toUpdate, string outputFormat)
        {
            IGraph targetGraph = new Graph();

            targetGraph.BaseUri = UriFactory.Create(Properties.Settings.Default.StationGraphBase);
            ontovis.Util.AddNamesSpaces(targetGraph);
            return(ParseFile(fName, prov, fileController, targetGraph, out Errors, toUpdate, outputFormat));
        }
Exemple #25
0
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock <IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.FindAllFilesLike("Folder", "*.apiext.xml")).Return(new[] { "Folder\\Specs_For_Project_Loading__ApiExtensions.ApiExtensionTest.apiext.xml" });
     fileController.Stub(f => f.ReadAllText("Folder\\Specs_For_Project_Loading__ApiExtensions.ApiExtensionTest.apiext.xml")).Return(ExpectedXml);
 }
        public ProjectSerialiserV1(IFileController fileController)
        {
            if (fileController == null)
            {
                throw new ArgumentNullException("fileController");
            }

            this.fileController = fileController;
        }
Exemple #27
0
 public ScanForLocalMovieFilesCommand(
     ICommonDataViewModel commonData,
     IApiController apiController,
     IFileController fileController)
 {
     _commonData     = commonData;
     _apiController  = apiController;
     _fileController = fileController;
 }
 public StorageController(
     IStreamController streamController,
     IFileController fileController,
     ITraceDelegate traceDelegate = null)
 {
     this.streamController = streamController;
     this.fileController   = fileController;
     this.traceDelegate    = traceDelegate;
 }
Exemple #29
0
 public RecycleDelegate(
     IGetDirectoryDelegate getDirectoryDelegate,
     IFileController fileController,
     IDirectoryController directoryController)
 {
     this.getDirectoryDelegate = getDirectoryDelegate;
     this.fileController       = fileController;
     this.directoryController  = directoryController;
 }
Exemple #30
0
        public void SetUp()
        {
            bytes = new byte[] { 0, 1, 2 };

            fileController = MockRepository.GenerateMock <IFileController>();
            fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
            fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(true);
            fileController.Stub(f => f.ReadAllBytes("static.dat")).Return(bytes);
        }
        public static void Initialize(TestContext context)
        {
            testHelpers    = new TestHelpers();
            fileController = new FileController();
            userController = new UserController();

            testHelpers.ClearData();
            testHelpers.InsertTestData();
        }
Exemple #32
0
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock <IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.FindAllFilesLike("Folder", "*.useroption.xml")).Return(new string[0]);
     fileController.Stub(f => f.FileExists(ProjectSerialiserV1.UserOptionsDetailsFileName)).Return(true);
     fileController.Stub(f => f.ReadAllText(ProjectSerialiserV1.UserOptionsDetailsFileName)).Return(Constructing_The_XML_For_The_UserOptions_Details.ExpectedXml);
 }
Exemple #33
0
 public ExplorerViewModel(IFolderController folderController, IFileController fileController, IMediaFileController mediaFileController, IMediaFactory factory, IFolderScanner scanner, IUserInput input, IMediaBroadcaster broadcaster)
 {
     FolderController    = folderController;
     FileController      = fileController;
     Scanner             = scanner;
     Input               = input;
     MediaFileController = mediaFileController;
     Factory             = factory;
     Broadcaster         = broadcaster;
     Folders             = new ObservableCollection <IFolder>(FolderController.GetList());
 }
        public void SetUp()
        {
            fileController = MockRepository.GenerateMock <IFileController>();
            fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
            fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(true);

            project             = MockRepository.GenerateStub <IDesignerProject>();
            project.ProjectName = "Project";
            project.Stub(p => p.Namespaces).Return(new List <string>());
            project.Stub(p => p.References).Return(new List <ReferencedFile>().AsReadOnly());
        }
        public static NHConfigFile GetNhConfigFile(CSProjFile csproj, IFileController fileController)
        {
            //if (string.IsNullOrEmpty(csprojPath) || !File.Exists(csprojPath))
            //    return null;

            NHConfigFile nhConfigFile = null;
            var          configFiles  = GetPossibleNHibernateConfigFilesFromCSProj(csproj, fileController);

            string cfgXmlFile         = null;
            bool   invalidSchemaFound = false;

            foreach (var configFilePath in configFiles)
            {
                if (File.Exists(configFilePath))
                {
                    // Test if it is an NHibernate file.
                    nhConfigFile = GetConfigFromXmlFile(ref cfgXmlFile, ref invalidSchemaFound, configFilePath);

                    if (nhConfigFile != null)
                    {
                        break;
                    }
                }
            }
            if (cfgXmlFile == null &&
                !(invalidSchemaFound || configFiles.Contains("hibernate.cfg.xml")))
            {
                // We can't find a valid config file in the project - it might exist in
                // another project, so ask the user to locate it.
                string filepath = "";
                return(null);
            }
            if (cfgXmlFile == null)
            {
                if (invalidSchemaFound)
                {
                    throw new NHibernateConfigException("Your NHibernate Configuration file uses an unsupported version of the schema. We only support NHibernate Version 2.2");
                }
                if (configFiles.Contains("hibernate.cfg.xml"))
                {
                    throw new NHConfigFileMissingException("Your NHibernate configuration file does not validate against the NHibernate Configuration Schema version 2.2");
                }
                System.Text.StringBuilder sb = new System.Text.StringBuilder();

                foreach (var location in configFiles)
                {
                    sb.AppendLine(location);
                }
                string message = string.Format("Could not find the NHibernate configuration file in your project. Locations searched:{0}{1}", Environment.NewLine, sb);
                return(null);
                //throw new NHConfigFileMissingException(message);
            }
            return(nhConfigFile);
        }
Exemple #36
0
        public EntityLoader(IFileController fileController)
        {
            _fileController = fileController;
            var assembly = typeof(EntityLoader).Assembly;
            var xsdStream = assembly.GetManifestResourceStream("ArchAngel.NHibernateHelper.supported-nhibernate-mapping.xsd");

            mappingSchemaSet = new XmlSchemaSet();
            mappingSchemaSet.Add(XmlSchema.Read(xsdStream, (s, e) => log.Error(e.Message)));

            nhibernateFileVerifier = new NHibernateFileVerifier();
        }
        public void Setup()
        {
            mocks = new MockRepository();

            progressHelper = mocks.DynamicMock<ITaskProgressHelper<GenerateFilesProgress>>();
            projectInfo = mocks.DynamicMock<IWorkbenchProject>();
            folder = mocks.DynamicMock<IFolder>();
            scriptObject = mocks.DynamicMock<IScriptBaseObject>();
            loader = mocks.DynamicMock<ITemplateLoader>();
            controller = mocks.DynamicMock<IController>();
            fileController = mocks.DynamicMock<IFileController>();
        }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.GetAllFilesFrom("Folder")).Return(new[] { "Folder\\static.dat", "Folder\\StaticFiles.xml" });
     fileController.Stub(f => f.FileExists("Folder\\static.dat")).Return(true);
     fileController.Stub(f => f.CanReadFile("Folder\\static.dat")).Return(true);
     fileController.Stub(f => f.FileExists("Folder\\StaticFiles.xml")).Return(true);
     fileController.Stub(f => f.CanReadFile("Folder\\StaticFiles.xml")).Return(true);
     fileController.Stub(f => f.ReadAllText("Folder\\StaticFiles.xml")).Return(ExpectedXml);
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     project = MockRepository.GenerateStub<IDesignerProject>();
     project.ProjectName = "Test";
     project.ProjectDescription = "Desc";
     project.DebugProjectFile = "debug.wbproj";
     project.Stub(p => p.GetCompiledDLLDirectory()).Return("temp-compile");
     project.Stub(p => p.GetPathRelativeToProjectFile("debug.wbproj")).Return("debug.wbproj");
     project.Stub(p => p.GetPathRelativeToProjectFile("test gen")).Return("test gen");
     project.Version = "1.2.3.2.1";
     project.TestGenerateDirectory = "test gen";
     project.Stub(p => p.Namespaces).Return(new List<string>());
     project.Stub(p => p.References).Return(new List<ReferencedFile>().AsReadOnly());
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
 }
        public void SetUp()
        {
            fileController = MockRepository.GenerateMock<IFileController>();
            fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
            fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(true);

            project = MockRepository.GenerateStub<IDesignerProject>();
            project.ProjectName = "Project";
            project.Stub(p => p.Namespaces).Return(new List<string>());
            project.Stub(p => p.References).Return(new List<ReferencedFile>().AsReadOnly());
        }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     rootFolder = new OutputFolder("ROOT", "1");
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.FindAllFilesLike("Folder", "*.useroption.xml")).Return(new string[0]);
     fileController.Stub(f => f.FileExists(ProjectSerialiserV1.UserOptionsDetailsFileName)).Return(true);
     fileController.Stub(f => f.ReadAllText(ProjectSerialiserV1.UserOptionsDetailsFileName)).Return(Constructing_The_XML_For_The_UserOptions_Details.ExpectedXml);
 }
 public static IEnumerable<string> GetCSharpFilesFromCSProj(CSProjFile csproj, IFileController controller)
 {
     return csproj
         .GetFilesMarkedCompile(f => f.EndsWith(".cs", StringComparison.OrdinalIgnoreCase))
         .Select(f => controller.ToAbsolutePath(f, csproj.FilePath))
         .ToList();
 }
 public ProjectLoader(IFileController fileController, IProgressUpdater progress, IUserInteractor userInteractor)
     : this(fileController)
 {
     _progress = progress;
     _userInteractor = userInteractor;
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     userOption = new UserOption("var", "Gen", typeof(string), "test-text", "test-description", new []{"val1"}, "dv-body", typeof(bool), "validator body", "return true;", true);
 }
Exemple #47
0
 public NetworkDisk(INDiskPathManager mgr , IFileController controller)
 {
     this.networkDiskPathManager = mgr;
     this.fileController = controller;
     this.fileController.FileRequestReceived += new CbFileRequestReceived(fileController_FileRequestReceived);
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanReadFilesFrom("Folder")).Return(true);
     fileController.Stub(f => f.FindAllFilesLike("Folder", "*.apiext.xml")).Return(new string[0]);
 }
        public static NHConfigFile GetNhConfigFile(CSProjFile csproj, IFileController fileController)
        {
            //if (string.IsNullOrEmpty(csprojPath) || !File.Exists(csprojPath))
            //    return null;

            NHConfigFile nhConfigFile = null;
            var configFiles = GetPossibleNHibernateConfigFilesFromCSProj(csproj, fileController);

            string cfgXmlFile = null;
            bool invalidSchemaFound = false;

            foreach (var configFilePath in configFiles)
            {
                if (File.Exists(configFilePath))
                {
                    // Test if it is an NHibernate file.
                    nhConfigFile = GetConfigFromXmlFile(ref cfgXmlFile, ref invalidSchemaFound, configFilePath);

                    if (nhConfigFile != null)
                        break;
                }
            }
            if (cfgXmlFile == null &&
                !(invalidSchemaFound || configFiles.Contains("hibernate.cfg.xml")))
            {
                // We can't find a valid config file in the project - it might exist in
                // another project, so ask the user to locate it.
                string filepath = "";
                return null;
            }
            if (cfgXmlFile == null)
            {
                if (invalidSchemaFound)
                {
                    throw new NHibernateConfigException("Your NHibernate Configuration file uses an unsupported version of the schema. We only support NHibernate Version 2.2");
                }
                if (configFiles.Contains("hibernate.cfg.xml"))
                {
                    throw new NHConfigFileMissingException("Your NHibernate configuration file does not validate against the NHibernate Configuration Schema version 2.2");
                }
                System.Text.StringBuilder sb = new System.Text.StringBuilder();

                foreach (var location in configFiles)
                {
                    sb.AppendLine(location);
                }
                string message = string.Format("Could not find the NHibernate configuration file in your project. Locations searched:{0}{1}", Environment.NewLine, sb);
                return null;
                //throw new NHConfigFileMissingException(message);
            }
            return nhConfigFile;
        }
 /// <param name="fileController"></param>
 /// <param name="progressHelper">The TaskProgressHelper to use to report progress and cancel the operation.</param>
 /// <param name="projectInfo">The Project we are generating files from.</param>
 /// <param name="loader"></param>
 public GenerationHelper(ITaskProgressHelper<GenerateFilesProgress> progressHelper, ITemplateLoader loader, IWorkbenchProject projectInfo, IFileController fileController)
 {
     _Loader = loader;
     _ProgressHelper = progressHelper;
     _Project = projectInfo;
     _FileController = fileController;
 }
 public EntityModelPreprocessor(IFileController fileController)
 {
     this.fileController = fileController;
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     outputFile = new OutputFile("ROOT", OutputFileTypes.File, "aaaa", "1") { StaticFileIterator = typeof(string)};
 }
 public ProjectLoader(IFileController fileController)
 {
     this.fileController = fileController;
 }
 public NHibernateProjectPreprocessor(IFileController fileController)
 {
     this.fileController = fileController;
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     outputFile = new OutputFile("ROOT", OutputFileTypes.File, "aaaa", "1") {StaticFileSkipFunctionName = "func1_Skip"};
 }
 public static IEnumerable<string> GetPossibleNHibernateConfigFilesFromCSProj(CSProjFile csproj, IFileController controller)
 {
     return csproj
         .GetEmbeddedResources(f => f.EndsWith(".cfg.xml", StringComparison.OrdinalIgnoreCase))
         .Concat(csproj.GetFilesMarkedNone(f => f.EndsWith(".cfg.xml", StringComparison.OrdinalIgnoreCase)))
         .Concat(csproj.GetContentFiles(f => f.EndsWith(".cfg.xml", StringComparison.OrdinalIgnoreCase)))
         .Concat(csproj.GetResourceFiles(f => f.EndsWith(".cfg.xml", StringComparison.OrdinalIgnoreCase)))
         .Concat(csproj.GetFilesMarkedNone(f => f.EndsWith(".config", StringComparison.OrdinalIgnoreCase)))
         .Select(f => controller.ToAbsolutePath(f, csproj.FilePath))
         .ToList();
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     fileController.Stub(f => f.DirectoryExists("Folder")).Return(true);
     fileController.Stub(f => f.CanCreateFilesIn("Folder")).Return(false);
 }
 public static IEnumerable<string> GetNHVFilesFromCSProj(CSProjFile csproj, string csprojPath, IFileController controller)
 {
     return csproj
         .GetEmbeddedResources(f => f.EndsWith(".nhv.xml", StringComparison.OrdinalIgnoreCase))
         .Select(f => controller.ToAbsolutePath(f, csprojPath))
         .ToList();
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     outputFile = new OutputFile("ROOT", OutputFileTypes.Script, "aaaa", "1");
 }
 public void SetUp()
 {
     fileController = MockRepository.GenerateMock<IFileController>();
     fileController.Stub(f => f.FileExists("ProjectFile.aad")).Return(false);
     fileController.Stub(f => f.CanReadFile("ProjectFile.aad")).Return(false);
 }