public WCCSupervisor() { _presenter = new WCCSupervisorPresenter(new Models.ServiceModel(), new Models.SupervisorUiModel(), this); InitializeComponent(); ReadConfiguration(); ControlPanel.ControlPanelEvent += ControlPanel_ControlPanelEvent; }
public void ManageCardsPresenter_UpdateCardsPermissions_ThrowsException_EmptyStatusList() { //Arrange var mngCardsP = new Mock <IWCCSupervisorPresenter>(); //Act var result = new WCCSupervisorPresenter(new ServiceModel(), new SupervisorUiModel(), mngCardsP.Object); //Assert xunit.Assert.Throws <InvalidOperationException>(() => result.UpdateCardsPermissions(null, 1)); }
public void ManageCardsPresenter_UpdateCardsPermissions_Success() { //Arrange var mngCardsP = new Mock <IWCCSupervisorPresenter>(); //Act var result = new WCCSupervisorPresenter(new ServiceModel(), new SupervisorUiModel(), mngCardsP.Object); //Assert xunit.Assert.Equal(false, result.UpdateCardsPermissions(new List <List <Status> >() { new List <Status>() }, 1)); }