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() } }); }
public override void PerformTestSetup() { ServiceProvider = ServiceProviderInitializer.Setup().WithInputParameters(() => new ParameterCollection { { InputParameterType.ContractId, Guid.NewGuid() }, { InputParameterType.IncludeCanceledLines, true } }); }
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) } }); }
public IServiceProvider ConfigureServices(IServiceCollection services) { Guard.NotNull(services, nameof(services)); services.AddMvc(); services.AddSingleton <IHostedService, HostedService>(); var serviceProviderInitializer = new ServiceProviderInitializer(); return(serviceProviderInitializer.Initialize(services)); }
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() } }); }
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) } }); }
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(); }