public PersonController()
        {
            var context = new MongoContexto();

            _repository = new RepositorioPessoas(context);
            //CarregarListadeTesteDePessoas();
        }
示例#2
0
        public static IRepositoryPerson getInstancePerson()
        {
            if (repositoryPerson == null)
            {
                repositoryPerson = new RepositoryPerson();
            }

            return(repositoryPerson);
        }
 public ControlPerson()
 {
     DomainPersona = new RepositoryPerson();
 }
 public ServicePerson(IRepositoryPerson RepositoryPerson)
     : base(RepositoryPerson)
 {
     _repositoryPerson = RepositoryPerson;
 }
示例#5
0
 public PersonService(IRepositoryPerson repo) : base(repo)
 {
     _repo = repo;
 }
示例#6
0
 public ServicePerson(IRepositoryPerson repositoryPerson) : base(repositoryPerson)
 {
     _repositoryPerson = repositoryPerson;
 }