public async Task AssertThatGetAllReturnsAValidResponseCodeAndCallsManager() { var action = await _competitionController.GetAll(); var response = await action.ExecuteAsync(new CancellationToken()); await _competitionManager.Received().GetAllCompetition(); Assert.False(response.StatusCode == HttpStatusCode.InternalServerError, "InternalServerError is thrown"); Assert.IsTrue(response.IsSuccessStatusCode, "Status code is success"); }