using Machine.Specifications; using MonoStockPortfolio.Activites.EditPositionScreen; using MonoStockPortfolio.Core.PortfolioRepositories; using MonoStockPortfolio.Core.StockData; using Telerik.JustMock; namespace MonoStockPortfolio.Tests.Presenters { public class EditPositionTests { protected static EditPositionPresenter _presenter; protected static IPortfolioRepository _mockPortfolioRepository; protected static IStockDataProvider _mockStockService; protected static IEditPositionView _mockView; Establish context = () => { _mockPortfolioRepository = Mock.Create(); _mockStockService = Mock.Create(); _mockView = Mock.Create(); _presenter = new EditPositionPresenter(_mockPortfolioRepository, _mockStockService); }; } }