Exemplo n.º 1
0
        public async Task Should_Call_DeleteAsync()
        {
            //Arrange

            const int houseId = 1;

            _manager = new HouseManager(_mapperMock.Object, _houseRepositoryMock.Object);

            //Act

            await _manager.DeleteAsync(houseId);

            //Assert

            _houseRepositoryMock.Verify(x => x.DeleteAsync(houseId), Times.Once);
        }