public void Setup() { Moq.Mock<IFigurPropertyPresenter> mockFigurPropertyPresenter = new Moq.Mock<IFigurPropertyPresenter>(); mockFigurPropertyPresenter.SetupAllProperties(); m_MockFigurProperty = mockFigurPropertyPresenter.Object; m_MockFigurProperty.NewFigurButton = new Button(); m_MockFigurProperty.SaveButton = new Button(); m_MockFigurProperty.DeleteButton = new Button(); m_MockFigurProperty.CancelButton = new Button(); m_MockFigurProperty.ErrorMessage = new Label(); m_MockFigurProperty.Name = new TextBox(); m_MockFigurProperty.Description = new TextBox(); m_MockFigurProperty.Price = new TextBox(); m_MockFigurProperty.ChooseSerie = new DropDownList(); m_MockFigurProperty.Figur = null; }
public FigurPropertyPresenter(IFigurPropertyPresenter figurPropertyPresenter) { m_FigurPropertyPresenter = figurPropertyPresenter; }
public void Teardown() { m_MockFigurProperty = null; }