public void SetUp() { _targets = new Collection<Target>(); _map = new GoogleMap(); _player = new Player(); _mapGenerator = MockRepository.GenerateMock<IMapGenerator>(); _mapGenerator.Expect(m => m.GenerateTargetMap(null)).Return(_map).IgnoreArguments(); _targetRepository = new InMemoryRepository<Target>(_targets); _controller = new MissionController(_mapGenerator, _targetRepository); }