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