Пример #1
0
 public void Construct(
     Selectable selectable,
     CurrentSelectionRepository repository)
 {
     _selectable = selectable;
     _repository = repository;
 }
        private void GivenANewRepository()
        {
            Container.Bind <CurrentSelectionRepository>().To <BasicCurrentSelectionRepository>().AsSingle();
            _selectableMock = new Mock <Selectable>();
            Container.Bind <Selectable>().To <Selectable>().FromInstance(_selectableMock.Object).AsSingle();

            _repository = Container.Resolve <CurrentSelectionRepository>();
            _selectable = Container.Resolve <Selectable>();
        }
Пример #3
0
 public void Construct(CurrentSelectionRepository repository)
 {
     _currentSelectionRepository = repository;
 }