public void GetLookUpEntityNameNoEntityFound()
        {
            string entityName    = "contactluenNoEntityFound";
            string attributeName = "contactluenid";

            var manyToManyRelationships = new List <OneToManyRelationshipMetadata>();

            RetrieveEntityResponse response = InjectMetaDataToResponse(new RetrieveEntityResponse(), null, manyToManyRelationships);

            MockOrganizationService.Setup(a => a.Execute(It.IsAny <OrganizationRequest>())).Returns(response);

            FluentActions.Invoking(() => systemUnderTest.GetLookUpEntityName(entityName, attributeName))
            .Should()
            .NotThrow();

            MockOrganizationService.VerifyAll();
        }
예제 #2
0
        public void LookupFieldTest()
        {
            var actual = systemUnderTest.GetLookUpEntityName("systemuser", "businessunitid");

            actual.Should().Be("businessunit");
        }