Beispiel #1
0
 public PersistentService(ISerializer serializer,
                          ILinqService linqService, IRemoteFile remoteFile)
 {
     _serializer  = serializer;
     _linqService = linqService;
     _remoteFile  = remoteFile;
 }
Beispiel #2
0
 public WcfLinqService(
     ILinqService linqService,
     bool transferInternalExceptionToClient
     )
 {
     _linqService = linqService ?? throw new ArgumentNullException(nameof(linqService));
     _transferInternalExceptionToClient = transferInternalExceptionToClient;
 }
 public OrganisationServiceDependencies(IUserService userService,
                                        IStorageService storageService,
                                        ILinqService linqService,
                                        IUrlSlugService urlSlugService)
 {
     UserService    = userService;
     StorageService = storageService;
     LinqService    = linqService;
     UrlSlugService = urlSlugService;
 }
Beispiel #4
0
 public LinqClient(Binding binding, EndpointAddress endpointAddress, string configuration = null)
 {
     _configuration = configuration;
     _dataProvider  = expression =>
     {
         _channel = CreateServerConnection(binding, endpointAddress);
         IEnumerable <Aqua.Dynamic.DynamicObject> result = _channel.ExecuteQuery(expression, configuration);
         return(result);
     };
 }
        public void InIt()
        {
            _id              = Guid.NewGuid();
            _stubModel       = MockRepository.GenerateStub <IModel>();
            _stubTeamPlayers = MockRepository.GenerateStub <TeamPlayers>();
            _stubDtoPlayer   = MockRepository.GenerateStub <PlayerDTO>();
            _stubPlayer      = MockRepository.GenerateStub <Player>();

            _stubSerializer        = MockRepository.GenerateStub <ISerializer>();
            _stubLinqService       = MockRepository.GenerateStub <ILinqService>();
            _stubRemoteFile        = MockRepository.GenerateStub <IRemoteFile>();
            _stubPersistentService = MockRepository.GenerateStub <IPersistentService>();
            _target = new PersistentService(_stubSerializer,
                                            _stubLinqService, _stubRemoteFile);
        }
        public void InIt()
        {
            _id = Guid.NewGuid();
            _stubModel = MockRepository.GenerateStub<IModel>();
            _stubTeamPlayers = MockRepository.GenerateStub<TeamPlayers>();
            _stubDtoPlayer = MockRepository.GenerateStub<PlayerDTO>();
            _stubPlayer = MockRepository.GenerateStub<Player>();

            _stubSerializer = MockRepository.GenerateStub<ISerializer>();
            _stubLinqService = MockRepository.GenerateStub<ILinqService>();
            _stubRemoteFile = MockRepository.GenerateStub<IRemoteFile>();
            _stubPersistentService = MockRepository.GenerateStub<IPersistentService>();
            _target = new PersistentService(_stubSerializer,
                _stubLinqService,_stubRemoteFile);
        }
Beispiel #7
0
 public UserServiceDependencies(IStorageService storageService, ILinqService linqService)
 {
     StorageService = storageService;
     LinqService    = linqService;
 }