public void ContainsReturnsTrueWhenActivityGuidMatches()
        {
            var      activityBoard = new ActivityBoard();
            Activity activity      = Activity.FluentNew("First New Activity").AddToBoard(activityBoard);

            Activity.FluentNew("Second New Activity").AddToBoard(activityBoard);
            Assert.That(activityBoard.ContainsActivity(activity), Is.True);
        }
 public FluentlyMoveActivity(ActivityBoard board, Activity activityToMove)
 {
     if (!board.ContainsActivity(activityToMove))
     {
         throw new ArgumentException($"Cannot move an {nameof(Activity)} that is not owned by the referenced {nameof(ActivityBoard)}.");
     }
     this._board          = board;
     this._activityToMove = activityToMove;
 }
        public void ContainsReturnsFalseWhenActivityGuidDoesntMatch()
        {
            var activityBoard = new ActivityBoard();
            var activity      = new Activity()
            {
                Name = "Activity to not find"
            };

            Activity.FluentNew("First New Activity").AddToBoard(activityBoard);
            Activity.FluentNew("Second New Activity").AddToBoard(activityBoard);
            Assert.That(activityBoard.ContainsActivity(activity), Is.False);
        }