Esempio n. 1
0
        public async Task DeleteById_Should_Return_Ok()
        {
            const int id = 1;

            var actual = await _historyController.DeleteById(id).ConfigureAwait(false);

            _historyService.Verify(service => service.DeleteByIdAsync(It.Is <int>(i => i == id)), Times.Once);
            var ok = actual as OkResult;

            Assert.NotNull(ok);
        }