public void GetGoalFromActivityWhenNoGoalIsAssigned()
        {
            var      board    = new ActivityBoard();
            Activity activity = Activity.FluentNew("An Activity")
                                .AddToBoard(board);
            ActivityGoal foundGoal = board.GetGoalFromActivity(activity);

            Assert.That(foundGoal, Is.Null);
        }
        public void GetGoalFromActivityWhenGoalGuidIsInvalid()
        {
            var      board    = new ActivityBoard();
            Activity activity = Activity.FluentNew("An Activity")
                                .AddToBoard(board);

            activity.GoalGuid = Guid.NewGuid();
            Assert.That(() => board.GetGoalFromActivity(activity), Throws.TypeOf <InvalidOperationException>());
        }
        public void GetGoalFromActivity()
        {
            var      board    = new ActivityBoard();
            Activity activity = Activity.FluentNew("An Activity")
                                .AddToBoard(board);
            ActivityGoal newGoal = board.AddNewGoal("New Goal");

            board.MoveActivity(activity).ToGoal(newGoal);
            ActivityGoal foundGoal = board.GetGoalFromActivity(activity);

            Assert.That(foundGoal, Is.EqualTo(newGoal));
        }