Exemplo n.º 1
0
        private void GenerateAutoFixtureCustomization(Entity entity)
        {
            var filePath = configuration.TestNameSpace + "\\AutoFixtureCustomization.cs";
            var fileMerger = new FileMerger(fileSystem);

            var codeSnippet = AutoFixtureCustomizationCodeSnippet(entity);

            fileMerger.InsertLineIntoMethod(filePath, codeSnippet, "Customize", "Customize<" + entity.Name + ">");

            string @namespace = "using " + configuration.CoreNameSpace + ".Domain.Model;";
            fileMerger.InsertFirstLine(filePath, @namespace, @namespace);
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     fileSystemMock = MockRepository.GenerateMock<IFileSystem>();
     fileMerger = new FileMerger(fileSystemMock);
 }
Exemplo n.º 3
0
 public AutoMapperHelper(IFileSystem fileSystem, IConfiguration configuration)
 {
     this.configuration = configuration;
     fileMerger = new FileMerger(fileSystem);
 }
Exemplo n.º 4
0
 public DepencyInjectionManager(IFileSystem fileSystem, IConfiguration configuration)
 {
     this.configuration = configuration;
     fileMerger = new FileMerger(fileSystem);
 }