public void Init() { ObjectFactory.Initialize(x => x.AddRegistry<MercurialRegistry>()); ObjectFactory.Configure( x => x.For<TransportMock>().Use(TransportMock.CreateWithoutStructureMapClear( typeof(MercurialPluginProfile).Assembly, new List<Assembly> {typeof (Command).Assembly}))); _testRepository = new MercurialTestRepository(); _mercurialRepoUri = _testRepository.Uri.ToString(); _profile = ObjectFactory.GetInstance<TransportMock>().AddProfile( "Profile", new MercurialPluginProfile { Uri = _mercurialRepoUri, Login = _testRepository.Login, Password = _testRepository.Password, StartRevision = "1/1/1980" }); }
public void Init() { ObjectFactory.Initialize(x => x.AddRegistry <MercurialRegistry>()); ObjectFactory.Configure( x => x.For <TransportMock>().Use(TransportMock.CreateWithoutStructureMapClear( typeof(MercurialPluginProfile).Assembly, new List <Assembly> { typeof(Command).Assembly }))); _testRepository = new MercurialTestRepository(); _mercurialRepoUri = _testRepository.Uri.ToString(); _profile = ObjectFactory.GetInstance <TransportMock>().AddProfile( "Profile", new MercurialPluginProfile { Uri = _mercurialRepoUri, Login = _testRepository.Login, Password = _testRepository.Password, StartRevision = "1/1/1980" }); }