Use test data count when comparing returned count

This commit is contained in:
Stedoss 2022-10-30 17:36:38 +00:00
parent 55a60b27cb
commit 727ab856f6

View File

@ -35,7 +35,7 @@ public class VenueControllerTests
var resultValue = ControllerTestHelper.ActionResultToOkResultValue<IEnumerable<Venue>>(result); var resultValue = ControllerTestHelper.ActionResultToOkResultValue<IEnumerable<Venue>>(result);
Assert.NotNull(resultValue); Assert.NotNull(resultValue);
Assert.AreEqual(1, resultValue.Count()); Assert.AreEqual(TestData.VenueTestData.Count(), resultValue.Count());
} }
[Test] [Test]