public LimitServiceTest()
 {
     _companyRepositoryQuery   = Substitute.For <ICompanyQueryRepository>();
     _customerRepositoryQuery  = Substitute.For <ICustomerQueryRepository>();
     _limitUsedQueryRepository = Substitute.For <ILimitUsedQueryRepository>();
     _limitService             = new LimitService(_companyRepositoryQuery, _customerRepositoryQuery, _limitUsedQueryRepository);
 }
        public CompanyRepositoryTest()
        {
            var url = "http://localhost:8080";

            _repositoryCommand = new CompanyCommandRepository(url);
            _repositoryQuery   = new CompanyQueryRepository(url);
            Settings.LoadDatabase(url);
        }
Esempio n. 3
0
 public LimitService(ICompanyQueryRepository companyQuery,
                     ICustomerQueryRepository customerQuery,
                     ILimitUsedQueryRepository limitUsedQuery)
 {
     _companyQuery   = companyQuery;
     _customerQuery  = customerQuery;
     _limitUsedQuery = limitUsedQuery;
 }