public async void TestHeatReorder() { //Arrange await _service.AddAsync(1); await _service.AddAsync(1); await _service.AddAsync(1); await _service.AddAsync(1); await _service.RemoveAsync(3); //Act await _service.ReorderHeatsAsync(1); IEnumerable <Heat> result = _service.GetHeatsForEvent(1); var r = (from x in result select x).LastOrDefault(); int i = r.HeatNumber; //Assert Assert.Equal(expected: 2, actual: i); }
public async Task <IActionResult> Delete(int competitionId, int competitionInstanceId, int eventId, Heat model) { await _heatService.RemoveAsync(model.Id); return(RedirectToAction("Event", "Admin", new { competitionId, competitionInstanceId, eventId })); }