public void GetAsync_Return_All_Addresses()
        {
            //Arrange
            List <AddressDomainModel> addressesDomainModelsList = new List <AddressDomainModel>();
            AddressDomainModel        addressDomainModel        = new AddressDomainModel
            {
                Id         = 1,
                CityName   = "ImeGrada",
                StreetName = "ImeUlice"
            };

            addressesDomainModelsList.Add(addressDomainModel);
            IEnumerable <AddressDomainModel>         addressDomainModels = addressesDomainModelsList;
            Task <IEnumerable <AddressDomainModel> > responseTask        = Task.FromResult(addressDomainModels);
            int expectedResultCount = 1;
            int expectedStatusCode  = 200;

            _addressService = new Mock <IAddressService>();
            _addressService.Setup(x => x.GetAllAsync()).Returns(responseTask);
            AddressesController addressesController = new AddressesController(_addressService.Object);

            //Act
            var result     = addressesController.GetAllAddresses().ConfigureAwait(false).GetAwaiter().GetResult().Result;
            var resultList = ((OkObjectResult)result).Value;
            var addressDomainModelResultList = (List <AddressDomainModel>)resultList;

            //Assert
            Assert.IsNotNull(addressDomainModelResultList);
            Assert.AreEqual(expectedResultCount, addressDomainModelResultList.Count);
            Assert.AreEqual(addressDomainModel.Id, addressDomainModelResultList[0].Id);
            Assert.IsInstanceOfType(result, typeof(OkObjectResult));
            Assert.AreEqual(expectedStatusCode, ((OkObjectResult)result).StatusCode);
        }