Exemple #1
0
 public AccountControllerTest()
 {
     _mediator   = Substitute.For <IMediator>();
     _mapper     = Substitute.For <IMapper>();
     _repository = Substitute.For <IBankAccountRepositoryReadOnly>();
     _sut        = new BankAccountController(_mediator, _repository, _mapper);
 }
Exemple #2
0
 public BankAccountController(IMediator mediator, IBankAccountRepositoryReadOnly bankAccountRepositoryReadOnly)
     : base(mediator)
     => _bankAccountRepositoryReadOnly = bankAccountRepositoryReadOnly;
Exemple #3
0
 public BankAccountController(IMediator mediator, IBankAccountRepositoryReadOnly bankAccountRepositoryReadOnly, IMapper mapper)
     : base(mediator)
 {
     _bankAccountRepositoryReadOnly = bankAccountRepositoryReadOnly;
     _mapper = mapper;
 }