public async Task Should_Update_ReturnsNoContentResult()
        {
            //Arrange

            const int    residentialId   = 1;
            const string residentialName = "Residential Name";

            var model = new ResidentialToUpdate
            {
                Id   = residentialId,
                Name = residentialName
            };

            _managerMock.Setup(x => x.ExistsAsync(residentialId))
            .ReturnsAsync(true);

            _controller = new ResidentialController(_managerMock.Object);
            _controller.ValidateViewModel(model);

            //Act

            var result = await _controller.Update(residentialId, model);

            //Assert

            _managerMock.Verify(x => x.ExistsAsync(residentialId), Times.Once);
            _managerMock.Verify(x => x.UpdateAsync(model), Times.Once);

            Assert.IsType <NoContentResult>(result);
        }
        public async Task Should_Update_ReturnsBadRequestResult()
        {
            //Arrange

            const int residentialId = 1;
            var       model         = new ResidentialToUpdate {
                Id = residentialId
            };

            _controller = new ResidentialController(_managerMock.Object);
            _controller.ValidateViewModel(model);

            //Act

            var result = await _controller.Update(residentialId, model);

            //Assert

            _managerMock.Verify(x => x.ExistsAsync(residentialId), Times.Never);
            _managerMock.Verify(x => x.UpdateAsync(model), Times.Never);

            Assert.IsType <BadRequestResult>(result);
        }