Exemplo n.º 1
0
        public void Initialize()
        {
            HttpRequestMessage request = new HttpRequestMessage();

            request.SetConfiguration(new HttpConfiguration());
            _checkingAccountServiceMock = new Mock <ICheckingAccountService>();
            _checkingAccountsController = new CheckingAccountsController()
            {
                Request          = request,
                _accountsService = _checkingAccountServiceMock.Object,
            };
            _checkingAccount         = new Mock <CheckingAccount>();
            _accountTransactionModel = new Mock <AccountTransactionModel>();
        }
Exemplo n.º 2
0
        public void Initialize()
        {
            AutoMapperInitializer.Reset();
            AutoMapperInitializer.Initialize();
            _accountQuery            = new CheckingAccountQuery();
            _checkingAccountRegister = new Mock <CheckingAccountRegisterCommand>();
            _checkingAccountRemove   = new Mock <CheckingAccountRemoveCommand>();
            _checkingAccountUpdate   = new Mock <CheckingAccountUpdateCommand>();
            HttpRequestMessage request = new HttpRequestMessage();

            request.SetConfiguration(new HttpConfiguration());
            _checkingAccountServiceMock    = new Mock <ICheckingAccountService>();
            _checkingAccountRepositoryMock = new Mock <ICheckingAccountRepository>();
            _clientRepositoryMock          = new Mock <IClientRepository>();
            _checkingAccountsController    = new CheckingAccountsController(_checkingAccountServiceMock.Object)
            {
                Request          = request,
                _accountsService = _checkingAccountServiceMock.Object,
            };
            _checkingAccount           = new Mock <CheckingAccount>();
            _accountTransactionCommand = new Mock <CheckingAccountTransactionCommand>();
        }