public virtual void SetUp()
 {
     _specrunner = new Mock<ISpecRunner>();
     _appconfig = new Mock<IoCConfig>();
     _appconfig.Setup(x => x.InitializeRunner(It.IsAny<Type>())).Returns(_specrunner.Object);
     _appconfig.Setup(x => x.InitializeRunner(It.IsAny<Type>(), It.IsAny<string>())).Returns(_specrunner.Object);
     _appdomainloader = new Mock<IAppDomainLoader>();
     _wrapper = new Mock<IOutputWrapper>();
     _client = new CommandLineClient(_wrapper.Object, _appconfig.Object, _appdomainloader.Object);
 }
Exemple #2
0
        static void Main(string[] args)
        {
            try
            {
                var client = new CommandLineClient(new ProdConsole(), new IoCConfig(), new AppDomainLoader());
                client.Run(args);
            }
            catch (Exception ex)
            {

                Console.WriteLine(ex);
            }
        }
 public int Run(string[] args)
 {
     var client= new CommandLineClient(new ProdConsole(), new IoCConfig(), new AppDomainLoader());
        return client.Run(args);
 }