示例#1
0
 public EntityRepositoryTests()
 {
     var s = new Mock<OrganizationServiceAdapter>();
     s.Setup(it => it.RetrieveMultiple(It.IsAny<QueryBase>())).Returns(Ents);
     _repo = DefaultOrganizationServiceWrapper.FromOrganizationService(s.Object, new ReflectionEntityConstructor());
 }
 public MetadataOptionSetRetriever(DefaultOrganizationServiceWrapper defaultOrganizationServiceWrapper)
 {
     _defaultOrganizationServiceWrapper = defaultOrganizationServiceWrapper;
 }