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); }
public void SetUp() { fileSystemMock = MockRepository.GenerateMock<IFileSystem>(); fileMerger = new FileMerger(fileSystemMock); }
public AutoMapperHelper(IFileSystem fileSystem, IConfiguration configuration) { this.configuration = configuration; fileMerger = new FileMerger(fileSystem); }
public DepencyInjectionManager(IFileSystem fileSystem, IConfiguration configuration) { this.configuration = configuration; fileMerger = new FileMerger(fileSystem); }