public async Task TryingToGetProfileContactByLocationId_InvalidLocationId_ErrorCodeIsReturned()
        {
            var partnerContactRepository = new Mock <IPartnerContactRepository>();

            partnerContactRepository
            .Setup(x => x.GetByLocationIdAsync(It.IsAny <string>()))
            .ReturnsAsync((IPartnerContact)null);

            PartnerContactService partnerContactService;

            using (var logFactory = LogFactory.Create().AddUnbufferedConsole())
            {
                partnerContactService = new PartnerContactService(
                    partnerContactRepository.Object,
                    logFactory);
            }

            var actual = await partnerContactService.GetByLocationIdAsync("testContactId");

            Assert.Equal(PartnerContactErrorCodes.PartnerContactDoesNotExist, actual.ErrorCode);
            Assert.Null(actual.PartnerContact);
        }
        public async Task TryingToGetProfileContactByLocationId_ValidLocationId_SuccessfullyReturned()
        {
            var partnerContactRepository = new Mock <IPartnerContactRepository>();
            var contactModel             = new PartnerContactModel();

            partnerContactRepository
            .Setup(x => x.GetByLocationIdAsync(It.IsAny <string>()))
            .ReturnsAsync(contactModel)
            .Verifiable();

            PartnerContactService partnerContactService;

            using (var logFactory = LogFactory.Create().AddUnbufferedConsole())
            {
                partnerContactService = new PartnerContactService(
                    partnerContactRepository.Object,
                    logFactory);
            }

            var actual = await partnerContactService.GetByLocationIdAsync("testContactId");

            partnerContactRepository.Verify();
            Assert.Equal(PartnerContactErrorCodes.None, actual.ErrorCode);
        }