Example #1
0
        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);
        }
Example #2
0
 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;
 }