public CustomersController(
            ICustomerRepository sqLiteRepository,
            IDBCustomerRepository <CustomerObject> mongoRepository,
            ICommandHandler <Command> commandHandler
            )
        {
            _commandHandler   = commandHandler;
            _sqLiteRepository = sqLiteRepository;
            _mongoRepository  = mongoRepository;

            if (_mongoRepository.GetCustomers().Count == 0)
            {
                var customerCmd = new CreateCustomerCommand
                {
                    Name   = "Prénom NOM",
                    Email  = "prenomnom.com",
                    Age    = 23,
                    Phones = new List <CreatePhoneCommand>
                    {
                        new CreatePhoneCommand {
                            Type = PhoneType.CELLPHONE, AreaCode = 123, Number = 7543010
                        }
                    }
                };
                _commandHandler.Execute(customerCmd);
            }
        }
 public List <CustomerObject> Get()
 {
     return(_mongoRepository.GetCustomers());
 }