コード例 #1
0
 public LimitServiceTest()
 {
     _companyRepositoryQuery   = Substitute.For <ICompanyQueryRepository>();
     _customerRepositoryQuery  = Substitute.For <ICustomerQueryRepository>();
     _limitUsedQueryRepository = Substitute.For <ILimitUsedQueryRepository>();
     _limitService             = new LimitService(_companyRepositoryQuery, _customerRepositoryQuery, _limitUsedQueryRepository);
 }
コード例 #2
0
 public LimitService(ICompanyQueryRepository companyQuery,
                     ICustomerQueryRepository customerQuery,
                     ILimitUsedQueryRepository limitUsedQuery)
 {
     _companyQuery   = companyQuery;
     _customerQuery  = customerQuery;
     _limitUsedQuery = limitUsedQuery;
 }
コード例 #3
0
        public LimitUsedRepositoryTest()
        {
            var url = "http://localhost:8080";

            _commandRepository = new LimitUsedCommandRepository(url);
            _queryRepository   = new LimitUsedQueryRepository(url);

            Settings.LoadDatabase(url);
        }