Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 static void Main(string[] args)
 {
     var service = new PersistentService();
     var manager = new ImageManager(service, new FileSystem());
 }