Beispiel #1
0
 public PendenciaApplication(
     IResponsavelApplication responsavelApp,
     IPendenciaRepository repository,
     IEMailSender emailSender,
     IMapper mapper) : base(repository, mapper)
 {
     _responsavelApp = responsavelApp;
     _repository     = repository;
     _emailSender    = emailSender;
     _mapper         = mapper;
 }
        public override void SetUp()
        {
            base.SetUp();
            _repository = new PendenciaRepository(Context);

            _responsavelApp = new Mock <IResponsavelApplication>().Object;

            var emailSenderMock = new Mock <IEMailSender>();

            emailSenderMock
            .Setup(es => es.Send())
            .Returns(true);

            _emailSender = emailSenderMock.Object;
        }
Beispiel #3
0
 public PendenciaMoreController(IPendenciaRepository rep, IPendenciaApplicationService app, ILoggerFactory logger)
 {
     this._rep    = rep;
     this._app    = app;
     this._logger = logger.CreateLogger <PendenciaMoreController>();
 }
Beispiel #4
0
 public PendenciaAptoParaCadastroValidation(IPendenciaRepository rep)
 {
     //base.Add(Guid.NewGuid().ToString(), new Rule<Pendencia>(Instance of RuleClassName,"message for user"));
 }
 public PendenciaService(IPendenciaRepository rep, IPendenciaTemposRepository repPendenciaTempos, IPendenciaEventosRepository repPendenciaEventos, ICache cache, CurrentUser user)
     : base(rep, cache, user)
 {
     this._repPendenciaTempos  = repPendenciaTempos;
     this._repPendenciaEventos = repPendenciaEventos;
 }
 public PendenciaServiceBase(IPendenciaRepository rep, ICache cache, CurrentUser user)
     : base(cache)
 {
     this._rep  = rep;
     this._user = user;
 }