/// ---------------------------------------------------------------------
 /// <summary>
 ///     Base Constructor
 /// </summary>
 /// ---------------------------------------------------------------------
 public DebitsController()
 {
     var conndirection = Convert.ToInt32(Resources.CONN_DIRECTION);
     string server, database, userid, password;
     ConnectionHelpers.ConnStringParameters(conndirection, out server, out database, out userid, out password);
     _debitRepository = new DebitRepository(conndirection, server, database, userid, password);
 }
        public DebitServiceTest()
        {
            _debitService      = Substitute.For <IDebitService>();
            _debitRepository   = Substitute.For <IDebitRepository>();
            _companyRepository = Substitute.For <ICompanyRepository>();

            _debitService = new DebitService(_debitRepository, _companyRepository);
        }
Пример #3
0
 public DebitService(IDebitRepository debitRepository, ICompanyRepository companyRepository)
 {
     _debitRepository   = debitRepository;
     _companyRepository = companyRepository;
 }