예제 #1
0
        public void TestCreateTable()
        {
            try
            {
                Inspector.Clear();
                var specService = new SpecService(new SpecTest());
                specService.CreateSpec();
            }
            catch (System.Exception ex)
            {
                Application.ShowAlertDialog(ex.Message);
            }
            TrayItemBubbleWindow bubble = new TrayItemBubbleWindow();

            bubble.IconType = IconType.Warning;
            bubble.Text     = "BubleText";
            bubble.Text2    = "BubleText2";
            bubble.Title    = "BubleTitle";

            TrayItem itemTray = new TrayItem();

            itemTray.Icon        = System.Drawing.SystemIcons.Warning;
            itemTray.ToolTipText = "ToolTipText";

            itemTray.ShowBubbleWindow(bubble);

            Application.StatusBar.TrayItems.Add(itemTray);
            Application.StatusBar.Update();

            if (Inspector.HasErrors)
            {
                Inspector.Show();
            }
        }
예제 #2
0
 /// <summary>
 /// Asserts the specification.
 /// </summary>
 /// <param name="entity">The entity.</param>
 /// <param name="specification">The specification.</param>
 protected void AssertSpecification(TEntity entity, ISpecification <TEntity> specification)
 {
     SpecService.Assert(entity, specification);
 }
예제 #3
0
 /// <summary>
 /// Asserts the specifications.
 /// </summary>
 /// <param name="entity">The entity.</param>
 /// <param name="specifications">The specifications.</param>
 protected void AssertSpecifications(TEntity entity, ISpecification <TEntity>[] specifications)
 {
     SpecService.Assert(entity, specifications);
 }