public void ShouldRequireValidPathId() { var command = new DeletePath { Id = 99 }; FluentActions.Invoking(() => SendAsync(command)).Should().ThrowAsync <NotFoundException>(); }
private void metroButton4_Click(object sender, EventArgs e) { TopPath = metroTextBox1.Text; DeletePath.DelPath(TopPath); metroLabel5.ForeColor = Color.Red; metroLabel5.Text = DeletePath.ErrDic.Item2; if (DeletePath.ErrDic.Item1 == 0) { metroLabel5.ForeColor = Color.Green; metroLabel5.Text = DeletePath.ErrDic.Item2; } Thread.Sleep(2000); }