示例#1
0
        public LimitUsedRepositoryTest()
        {
            var url = "http://localhost:8080";

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

            Settings.LoadDatabase(url);
        }
 public LimitReserveHandleTest()
 {
     _repository   = Substitute.For <ILimitUsedCommandRepository>();
     _limitService = Substitute.For <ILimitService>();
     _handle       = new LimitReserveHandle(_repository, _limitService);
 }
 public LimitReserveHandle(ILimitUsedCommandRepository limitUsedCommand, ILimitService limitService)
 {
     _limitUsedCommand = limitUsedCommand;
     _limitService     = limitService;
 }