mirror of
https://github.com/mgroves/MonodroidStockPortfolio.git
synced 2025-01-07 11:18:46 +00:00
26 lines
953 B
C#
26 lines
953 B
C#
|
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<IPortfolioRepository>();
|
||
|
_mockStockService = Mock.Create<IStockDataProvider>();
|
||
|
_mockView = Mock.Create<IEditPositionView>();
|
||
|
|
||
|
_presenter = new EditPositionPresenter(_mockPortfolioRepository, _mockStockService);
|
||
|
};
|
||
|
|
||
|
}
|
||
|
}
|