public async Task EditRealEstateShouldReturnTrue()
        {
            var mapper = this.GetMapper();

            var realEstateToEdit = this.TestData.FirstOrDefault();
            var mappedRealEstate = mapper.Map <RealEstateEditServiceModel>(realEstateToEdit);

            double  newArea  = 666;
            decimal newPrice = 999999m;

            mappedRealEstate.Area  = newArea;
            mappedRealEstate.Price = newPrice;

            var serviceInstance = new RealEstateServices(context,
                                                         realEstateTypeServices.Object,
                                                         citiesServices.Object,
                                                         neighbourhoodServices.Object,
                                                         addressServices.Object,
                                                         villageServices.Object,
                                                         buildingTypeServices.Object,
                                                         heatingSystemServices.Object,
                                                         mapper);

            var actualResult = await serviceInstance.EditRealEstateAsync(mappedRealEstate);

            Assert.IsTrue(actualResult);
            Assert.That(realEstateToEdit.Area == newArea);
        }
        public void EditRealEstateShouldThrowAnExceptionIfNoSuchRealEstate()
        {
            var mapper = this.GetMapper();

            var nonExistingRealEstate = new RealEstateEditServiceModel
            {
                Id    = "Agent007",
                Price = 7500m,
                Area  = 7,
            };

            var serviceInstance = new RealEstateServices(context,
                                                         realEstateTypeServices.Object,
                                                         citiesServices.Object,
                                                         neighbourhoodServices.Object,
                                                         addressServices.Object,
                                                         villageServices.Object,
                                                         buildingTypeServices.Object,
                                                         heatingSystemServices.Object,
                                                         mapper);

            Assert.ThrowsAsync <ArgumentNullException>(async() => await serviceInstance.EditRealEstateAsync(nonExistingRealEstate), NonExistingRealEstateMessage);
        }