public void UpdateAdressAsync_GivenNull_ThrowsException()
        {
            var repositoryMock = CreateUserAddressMockRepository();
            UserAddressService addressService = new UserAddressService(repositoryMock.Object);

            Func <Task> act = async() => await addressService.UpdateAdressAsync(null);

            act.Should().Throw <ArgumentNullException>();
        }
        public async Task UpdateAdressAsync_GivenAddress_InvokesRepositoryUpdateAsync()
        {
            var repositoryMock = CreateUserAddressMockRepository();
            UserAddressService addressService = new UserAddressService(repositoryMock.Object);
            UserAddressDTO     addressDTO     = new UserAddressDTO
            {
                UserAddressId = "1",
                Address1      = "Example Street",
                Address2      = "Example House",
                City          = "Example City",
                ZipCode       = "11-111",
                State         = "Example State",
                Country       = "Example Country"
            };

            await addressService.UpdateAdressAsync(addressDTO);

            repositoryMock.Verify(p => p.UpdateAsync(It.Is <UserAddress>(s => s.UserAddressId == "1")), Times.Once);
        }