コード例 #1
0
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.Target, new Contact() }
     });
 }
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.Target, new EntityReference(Contact.EntityLogicalName, Guid.NewGuid()) },
     });
 }
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.InvoiceId, Guid.NewGuid() }
     });
 }
コード例 #4
0
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.ContractId, Guid.NewGuid() },
         { InputParameterType.IncludeCanceledLines, true }
     });
 }
コード例 #5
0
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.OpportunityClose, new OpportunityClose() },
         { InputParameterType.Status, new OptionSetValue(1) }
     });
 }
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.IncidentResolution, new IncidentResolution() },
         { InputParameterType.Status, new OptionSetValue(1) }
     });
 }
コード例 #7
0
ファイル: Startup.cs プロジェクト: muncinsky/munERP
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            Guard.NotNull(services, nameof(services));
            services.AddMvc();
            services.AddSingleton <IHostedService, HostedService>();
            var serviceProviderInitializer = new ServiceProviderInitializer();

            return(serviceProviderInitializer.Initialize(services));
        }
コード例 #8
0
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.ContractId, Guid.NewGuid() },
         { InputParameterType.CancelDate, DateTime.Now },
         { InputParameterType.Status, new OptionSetValue(1) }
     });
 }
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.Target, new EntityReference(Letter.EntityLogicalName, Guid.NewGuid()) },
         { InputParameterType.DestinationQueueId, Guid.NewGuid() },
         { InputParameterType.SourceQueueId, Guid.NewGuid() }
     });
 }
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.Target, new EntityReference(Letter.EntityLogicalName, Guid.NewGuid()) },
         { InputParameterType.Relationship, new Relationship() },
         { InputParameterType.RelatedEntities, GetDummyEntityReferenceCollection() }
     });
 }
コード例 #11
0
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.CampaignId, Guid.NewGuid() },
         { InputParameterType.EntityId, Guid.NewGuid() },
         { InputParameterType.EntityName, Contact.EntityLogicalName },
     });
 }
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.EntityMoniker, new EntityReference(Contact.EntityLogicalName, Guid.NewGuid()) },
         { InputParameterType.State, new OptionSetValue(1) },
         { InputParameterType.Status, new OptionSetValue(1) }
     });
 }
コード例 #13
0
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.QuoteClose, new QuoteClose()
           {
               Id = Guid.NewGuid()
           } },
         { InputParameterType.State, new OptionSetValue(1) },
         { InputParameterType.Status, new OptionSetValue(1) }
     });
 }
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection
     {
         { InputParameterType.LeadId, new EntityReference(Lead.EntityLogicalName, Guid.NewGuid()) },
         { InputParameterType.CreateAccount, true },
         { InputParameterType.CreateContact, true },
         { InputParameterType.CreateOpportunity, true },
         { InputParameterType.OpportunityCustomerId, new EntityReference(Contact.EntityLogicalName, Guid.NewGuid()) },
         { InputParameterType.SourceCampaignId, new EntityReference(Campaign.EntityLogicalName, Guid.NewGuid()) },
         { InputParameterType.Status, new OptionSetValue(1) },
         { InputParameterType.OpportunityCurrencyId, new EntityReference(Currency.EntityLogicalName, Guid.NewGuid()) },
     });
 }
 public override void PerformTestSetup()
 {
     ServiceProvider = ServiceProviderInitializer.Setup();
 }