public static Regsvr32Executor NewRegsvr32Executor(this IFixture fixture) { var regsvr32Executor = new Regsvr32Executor(); // Don't use mock because you have to write the logic same as `EnvironmentRepository` if using it. regsvr32Executor.EnvironmentRepository = new EnvironmentRepository(); return(regsvr32Executor); }
public static Regsvr32Executor NewRegsvr32Executor(this IFixture fixture) { var regsvr32Executor = new Regsvr32Executor(); // Don't use mock because you have to write the logic same as `EnvironmentRepository` if using it. regsvr32Executor.EnvironmentRepository = new EnvironmentRepository(); return regsvr32Executor; }