public when_transferring_items_from_safe_house_to_user() { _userItemRetriever = new Mock<IUserItemRetriever>(); _userRetriever = new Mock<IUserRetriever>(); _itemRetriever = new Mock<IItemRetriever>(); _safeHouseRetriever = new Mock<ISafeHouseRetriever>(); _userItemRetriever = new Mock<IUserItemRetriever>(); _safeHouseItemSaver = new Mock<ISafeHouseItemSaver>(); _userItemSaver = new Mock<IUserItemSaver>(); _safeHouseDirector = new SafeHouseDirector(_userRetriever.Object, _itemRetriever.Object, _safeHouseRetriever.Object, _userItemRetriever.Object, _safeHouseItemSaver.Object, _userItemSaver.Object); }
public SafeHousesController() { _safeHouseRetriever = MvcApplication.DependancyInjection.Resolve<ISafeHouseRetriever>(); _safeHouseDirector = MvcApplication.DependancyInjection.Resolve<ISafeHouseDirector>(); _userRetriever = MvcApplication.DependancyInjection.Resolve<IUserRetriever>(); }
public SafeHousesController() { _safeHouseRetriever = DependancyInjection.Instance.Resolve<ISafeHouseRetriever>(); _safeHouseDirector = DependancyInjection.Instance.Resolve<ISafeHouseDirector>(); _userRetriever = DependancyInjection.Instance.Resolve<IUserRetriever>(); }