protected override string GetNamePattern( ) { if (context != null) { return(context.Invoke(f => string.Empty)); } return(string.Empty); }
public void Upsert <T>(T entity) where T : new() { _context.Invoke(f => f.Upsert(entity)); }
public void Register(Type serviceType, Type implementingType, string serviceName, ILifetime lifetime) { invocationContext.Invoke(c => c.Register(serviceType, implementingType, serviceName, lifetime)); }
public Task PlayAudioAsync(string id, PlayAudioData data, CancellationToken?cancellationToken = null) { return(_context.Invoke(m => m.PlayAudioAsync(id, data, cancellationToken))); }
public object GetService(Type serviceType) { return(_context.Invoke(i => i.GetService(serviceType))); }
public ICacheEntry CreateEntry(object key) { return(_context.Invoke(m => m.CreateEntry(key)) ?? new MockCacheEntry(key.ToString())); }
public Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead, CancellationToken?cancellationToken = null) { return(_context.Invoke(f => f.SendAsync(request, completionOption, cancellationToken))); }
public void Execute(string value) { context.Invoke(f => f.Execute(value)); }
public string EchoMessage(string message) { return(_mockContext.Invoke(c => c.EchoMessage(message))); }
public void Register(Type serviceType, Type implementingType, string serviceName, ILifetime lifetime) { context.Invoke(m => m.Register(serviceType, implementingType, serviceName, lifetime)); }
public Task UpdateAsync(string conferenceId, UpdateConferenceData data, CancellationToken?cancellationToken = null) { return(_context.Invoke(m => m.UpdateAsync(conferenceId, data, cancellationToken))); }
public Task <string> CreateAsync(CreateEndpointData data, CancellationToken?cancellationToken = default(CancellationToken?)) { return(_context.Invoke(f => f.CreateAsync(data, cancellationToken))); }
IEnumerable <Application> IApplication.List(ApplicationQuery query, CancellationToken?cancellationToken) { return(_context.Invoke(f => f.List(query, cancellationToken))); }
public Task <OrderedNumber[]> SearchAndOrderLocalAsync(LocalNumberQueryForOrder query, CancellationToken?cancellationToken = default(CancellationToken?)) { return(_context.Invoke(f => f.SearchAndOrderLocalAsync(query, cancellationToken))); }
public IEnumerable <PhoneNumber> List(PhoneNumberQuery query = null, CancellationToken?cancellationToken = default(CancellationToken?)) { return(_context.Invoke(f => f.List(query, cancellationToken))); }
public Task <HttpResponseMessage> UpdateAsync(string callId, UpdateCallData data, CancellationToken?cancellationToken = null, bool disposeResponse = true) { return(_context.Invoke(m => m.UpdateAsync(callId, data, cancellationToken, disposeResponse))); }
public string Execute(string value) { return(context.Invoke(f => f.Execute(value))); }
public override BaseClientService.Initializer GetInitializer() { return(context.Invoke(f => f.GetInitializer())); }
public Task <PaymentMethod> CreatePaymentMethodAsync(PaymentMethod paymentMethod) { return(_context.Invoke(m => m.CreatePaymentMethodAsync(paymentMethod))); }
public void Scan(Assembly assembly, IServiceRegistry serviceRegistry, Func <ILifetime> lifetime, Func <Type, Type, bool> shouldRegister) { context.Invoke(m => m.Scan(assembly, serviceRegistry, lifetime, shouldRegister)); }