public void Execute()
        {
            var item = _view.RetrieveItem();

            _itemsGateway.Add(item);
            _callback.Invoke();
        }
Example #2
0
        public void add_an_item_when_item_saved()
        {
            _view.RetrieveItem().Returns(_item);

            _addItemPresenter.OnAddItemButtonClicked();

            _view.Received().RetrieveItem();
            _itemsGateway.Received().Add(_item);
            _navigator.Received().NavigateTo(Screen.Reward);
        }