public void DeleteCompetitionTest() { TestUtils.AddCompetitionToContext(context); var result = controller.DeleteCompetition(context.competitions.First().id); Assert.AreEqual(0, context.competitions.Count()); Assert.AreEqual(200, ((StatusCodeResult)result).StatusCode); }