public void ReadAll_ContactRecord_ExpectedAllAdddressList()
        {
            DataModel.Contact contact1, contact2;
            mockContactRepository.Setup((item) => item.ReadAll()).Returns(new DataModel.Contact[] {
                contact1 = new DataModel.Contact()
                {
                    Id = 1, FirstName = "FirstName", LastName = "LastName"
                },
                contact2 = new DataModel.Contact()
                {
                    Id = 2, FirstName = "FirstName1", LastName = "LastName"
                }
            });

            var contactRepository = new BusinessRepository.ContactRepository(mockLogger.Object,
                                                                             mockContactRepository.Object
                                                                             );

            var result = contactRepository.ReadAll();

            Assert.IsNotNull(result);
            Assert.IsNotEmpty(result);
            Assert.IsTrue(result.SingleOrDefault((item) => item.Id == 1).Id == 1);
            Assert.IsTrue(result.SingleOrDefault((item) => item.FirstName == "FirstName1").Id == 2);
            Assert.IsTrue(result.SingleOrDefault((item) => item.FirstName == "FirstName1").FullName == GetFullName(contact2));
        }
        public void Get_ReadAll_ExpectedEmptyResult()
        {
            mockContactRepository.Setup((item) => item.ReadAll()).Returns(new DataModel.Contact[] { });

            var contactRepository = new BusinessRepository.ContactRepository(mockLogger.Object,
                                                                             mockContactRepository.Object
                                                                             );

            var result = contactRepository.ReadAll();

            Assert.IsNotNull(result);
            Assert.IsEmpty(result);
            Assert.IsNull(result.SingleOrDefault((item) => item.Id == 1));
            Assert.IsNull(result.SingleOrDefault((item) => item.FirstName == "FirstName"));
        }