Beispiel #1
0
        public async Task ApproveParticipant_Status200OK_ReturnsStatus200OK()
        {
            // Arrange
            _actionManager
            .Setup((x) => x.ApproveParticipantAsync(It.IsAny <int>()))
            .ReturnsAsync(StatusCodes.Status200OK);

            var expected = StatusCodes.Status200OK;

            // Act
            var result = await _eventsController.ApproveParticipant(It.IsAny <int>());

            var actual = (result as StatusCodeResult).StatusCode;

            // Assert
            Assert.AreEqual(expected, actual);
        }