Example #1
0
        public async Task RemoveFavorite_ReturnSuccess()
        {
            //arrange

            _favoritesQueryMock.Setup(x => x.Delete(It.IsAny <Favorite>()))
            .Returns(Task.Factory.StartNew(() => true));

            //act

            var task = await _uut.Remove("aml5071", 10);

            //assert

            Assert.IsType <NoContentResult>(task);
            var result = task as NoContentResult;

            Assert.True(result.StatusCode == 204);
        }