public void TestMethod1() { DomainFactory.Mapper.Map(a => a.Add <IUseRepo, UseRepo>().Add(useRepo2, "repo")); var usrDefault = DomainFactory.GetInstance <IUseRepo>(); var usrSubst = DomainFactory.GetInstance <IUseRepo>("repo"); }
public void MyTestMethod() { RepositoryConfiguration.GetConnection = delegate() { return(new SqlConnection()); }; RepositoryFactory.Mapper.LoadMapping(); DomainFactory.Mapper.LoadMapping(); var t = RepositoryFactory.GetInstance <IRepoTest>(); var t2 = DomainFactory.GetInstance <IRepoTest2>(); }