예제 #1
0
 public PedidoService(IPedidoRepository repoPedido, ITamanhoRepository repoTamanho, ISaborRepository repoSabor, IPersonalizacaoRepository repoPersonalizacao)
 {
     _repoPedido         = repoPedido;
     _repoTamanho        = repoTamanho;
     _repoSabor          = repoSabor;
     _repoPersonalizacao = repoPersonalizacao;
 }
예제 #2
0
 public PedidoController(ISaborRepository saborRepository,
                         ITamanhoRepository tamanhoRepository,
                         IPersonalizacaoRepository personalizacaoRepository,
                         IPedidoRepository pedidoRepository,
                         IPedidoPersonalizacaoRepository pedidoPersonalizacaoRepository)
 {
     _saborRepository                = saborRepository;
     _tamanhoRepository              = tamanhoRepository;
     _personalizacaoRepository       = personalizacaoRepository;
     _pedidoRepository               = pedidoRepository;
     _pedidoPersonalizacaoRepository = pedidoPersonalizacaoRepository;
 }
예제 #3
0
 public NewPedidoHandler(IPedidoRepository pedidoRepository, IEnderecoRepository enderecoRepository, ISaborRepository saborRepository)
 {
     _pedidoRepository   = pedidoRepository;
     _enderecoRepository = enderecoRepository;
     _saborRepository    = saborRepository;
 }
예제 #4
0
 public SaborService(ISaborRepository repository)
 {
     this.Repository = repository;
 }
예제 #5
0
 public SaborService(ISaborRepository saborRepository)
 {
     _saborRepository = saborRepository;
 }
예제 #6
0
 //private readonly CustomerHandler _handler;
 public SaborController(ISaborRepository repository)
 {
     _repository = repository;
 }
 public SaboresController(ISaborRepository saborRepository)
 {
     this.saborRepository = saborRepository;
 }
 public SaborService(ISaborRepository saborRepository)
 {
     _saborRepository = saborRepository;
 }
예제 #9
0
 public NewPedidoHandlerTest()
 {
     _pedidoRepository   = Substitute.For <IPedidoRepository>();
     _enderecoRepository = Substitute.For <IEnderecoRepository>();
     _saborRepository    = Substitute.For <ISaborRepository>();
 }
예제 #10
0
 public PizzaRepository(UdsDataContext context, ISaborRepository iSaborRepository, ITamanhoRepository iTamanhoRepository)
 {
     _context            = context;
     _iSaborRepository   = iSaborRepository;
     _iTamanhoRepository = iTamanhoRepository;
 }