Exemple #1
0
        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");
        }
Exemple #2
0
 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>();
 }