public TransacaoAporteRequestValidatorTest()
        {
            _validator = _moq.Create <TransacaoAporteRequestValidator>();

            _moq.GetMock <IGlobalContainerAccessor>()
            .Setup(x => x.GetInstance(It.Is <Type>(y => y == typeof(IBaseRepository <Conta>))))
            .Returns(_moq.GetMock <IBaseRepository <Conta> >().Object);
        }
Exemplo n.º 2
0
 public TransacaoServiceTest()
 {
     _transacaoService = _moq.Create <TransacaoService>();
     _moq.GetMock <ILogFactory>().Setup(x => x.Log());
 }