public LimitServiceTest() { _companyRepositoryQuery = Substitute.For <ICompanyQueryRepository>(); _customerRepositoryQuery = Substitute.For <ICustomerQueryRepository>(); _limitUsedQueryRepository = Substitute.For <ILimitUsedQueryRepository>(); _limitService = new LimitService(_companyRepositoryQuery, _customerRepositoryQuery, _limitUsedQueryRepository); }
public LimitService(ICompanyQueryRepository companyQuery, ICustomerQueryRepository customerQuery, ILimitUsedQueryRepository limitUsedQuery) { _companyQuery = companyQuery; _customerQuery = customerQuery; _limitUsedQuery = limitUsedQuery; }
public LimitUsedRepositoryTest() { var url = "http://localhost:8080"; _commandRepository = new LimitUsedCommandRepository(url); _queryRepository = new LimitUsedQueryRepository(url); Settings.LoadDatabase(url); }