Пример #1
0
        public void Delete_University()
        {
            //Arrange
            _mockUnitOfWork.Setup(_mockUnitOfWork => _mockUnitOfWork.Universities.DeleteAsync(mockUniversity, It.IsAny <CancellationToken>()));

            //Act
            var expected = _universityService.DeleteUniversityByIdAsync(mockUniversityDto.Id, It.IsAny <CancellationToken>());

            //Assert
            //Assert.That(mockUniversityDto, Is.Null);
        }
Пример #2
0
        public async Task <ActionResult> DeleteUniversity(Guid id, CancellationToken ct)
        {
            await _universityService.DeleteUniversityByIdAsync(id, ct);

            return(NoContent());
        }