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