Beispiel #1
0
        public JesusPlayground()
        {
            var auditableRepo = new AuditableRepo();

            auditableRepo.GetUsuarioById(1);
            var otherRepo = new OtherRepo();
            //otherRepo. (does not have GetUsuarioById
        }
Beispiel #2
0
        public JesusPlayground()
        {
            var auditableRepo = new AuditableRepo();

            auditableRepo.GetUsuarioById(1);
            var otherRepo = new OtherRepo();
            //otherRepo. (does not have GetUsuarioById
            var auditableRepoNotUsingTheActualClass = new GenericRepository <IAuditable>();

            auditableRepoNotUsingTheActualClass.GetUsuarioById(1);     //still works!
        }