コード例 #1
0
        public CrmTestingContext(ScenarioContext scenarioContext)
        {
            RecordBuilder    = new RecordBuilder(this);
            TableConverter   = new TableConverter(this);
            LanguageCode     = GetLanguageCode();
            CommandProcessor = new CommandProcessor(scenarioContext);
            RecordCache      = new AliasedRecordCache(GlobalTestingContext.ConnectionManager, GlobalTestingContext.Metadata);

            _targets = ConfigurationManager.AppSettings["Target"]
                       .ToLower()
                       .Split(';')
                       .Select(splitted => splitted.Trim())
                       .ToArray();
        }
コード例 #2
0
 public void Create(Entity entity, string alias, AliasedRecordCache recordCache)
 {
     entity.Id = CreateRecord(entity);
     recordCache.Add(alias, entity.ToEntityReference());
 }