Пример #1
0
        public void Post_ShouldSubscribeStudent()
        {
            var expected = StatusCodes.Status200OK;

            _mapperMock.Setup(mock => mock.Map <Student>(It.IsAny <StudentDto>())).Returns(MapDtoToEntity(_studentDto));

            var actual = (JsonResult)_controller.Post(_studentDto);

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