public void ImagesCountInvalidRealEstateIdShouldThrowException()
        {
            var realEstateId = "invalidRealEstateId";

            var mapper             = this.GetMapper();
            var realEstateServices = new Mock <IRealEstateServices>();
            var imageServices      = new ImageServices(context, mapper, realEstateServices.Object);

            Assert.Throws <ArgumentException>(() => imageServices.ImagesCount(realEstateId), ExceptionMessage);
        }
        public void ImagesCountShouldReturnTwo()
        {
            var realEstateId       = this.TestData.Select(x => x.RealEstateId).FirstOrDefault();
            var expectedResult     = 2;
            var mapper             = this.GetMapper();
            var realEstateServices = new Mock <IRealEstateServices>();
            var imageServices      = new ImageServices(context, mapper, realEstateServices.Object);

            var actualResult = imageServices.ImagesCount(realEstateId);

            Assert.That(expectedResult.Equals(actualResult), ImageCountMismatchMessage, actualResult, expectedResult);
        }