public void UnitTest_UpdateExistingProperty()
        {
            var dummyData = new List <usp_GetPropertyById_Result> {
                new usp_GetPropertyById_Result()
                {
                    PropertyID = 1, Location = "123 street", Bedroom = 2, Bathroom = 1, ConfidentialNotes = null, Status = 1
                },
            };

            var mockedObjectResult = new Mock <ObjectResult <usp_GetPropertyById_Result> >();

            mockedObjectResult.Setup(x => x.GetEnumerator()).Returns(dummyData.GetEnumerator());
            mockUnitOfWork.Setup(x => x.GetDB().usp_InsertSingleProperty("111 street", 2, 1, null, 1, false, DateTime.Now, DateTime.Now));
            mockUnitOfWork.Setup(x => x.GetDB().usp_UpdateProperty(1, "123 street", 2, 1, null, 1, false, DateTime.Now));
            mockUnitOfWork.Setup(x => x.GetDB().usp_GetPropertyById(1)).Returns(mockedObjectResult.Object);

            PropertyProvider provider = new PropertyProvider(mockUnitOfWork.Object);
            var newProerty            = provider.CreateProperty(new Model.PropertyDtoModel {
                PropertyID = 1, Location = "111 street", Bedroom = 2, Bathroom = 1, ConfidentialNotes = null, Status = 1
            });
            var updatedModel = provider.UpdateProperty(new Model.PropertyDtoModel {
                PropertyID = 1, Location = "123 street", Bedroom = 2, Bathroom = 1, ConfidentialNotes = null, Status = 1
            });

            var result = provider.GetById(updatedModel.PropertyID);

            Assert.AreEqual("123 street", result.Location);
        }