refactor(schedule): remove the end-now and start buttons from the now-playing card

The main start button already starts and ends the broadcast. With the
buttons go ScheduleController.EndCurrentNow, its tests and texts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
fraujulianandClaude Opus 5.5 committed 2026-11-26 10:51:02 +01:00
1 parent 3dcc81cc43
commit 6c3396ab4d
7 files changed
+2 -103

No files matched your search

@@ -265,32 +265,6 @@ public sealed class ScheduleControllerTests : IDisposable
return (controller, started);
}
[Fact]
public async Task EndCurrentNow_EndsTheItemOnAirAndStartsTheNext()
{
var (controller, started) = await OnAirWithTheFirstNewsAsync();
_now = _now.AddMinutes(2);
var plan = controller.EndCurrentNow();
Assert.Equal(TimeSpan.FromMinutes(2), plan[0].Duration);
AssertContiguousFrom(plan, plan[0].Start);
Assert.Equal(_now, plan[1].Start);
Assert.True(await started.WaitAsync(TimeSpan.FromSeconds(5)));
Assert.Equal(1, controller.CurrentIndex);
controller.Stop();
}
[Fact]
public void EndCurrentNow_WithNothingOnAirThrows()
{
AddSongs();
var controller = Create();
controller.CreatePlan(1);
Assert.Throws<ScheduleException>(() => controller.EndCurrentNow());
}
[Fact]
public async Task EditItem_ChangesTheItemOnAirButItCannotBeRemoved()
{