Esempio n. 1
0
 protected override string GetNamePattern( )
 {
     if (context != null)
     {
         return(context.Invoke(f => string.Empty));
     }
     return(string.Empty);
 }
Esempio n. 2
0
 public void Upsert <T>(T entity) where T : new()
 {
     _context.Invoke(f => f.Upsert(entity));
 }
Esempio n. 3
0
 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)));
 }
Esempio n. 5
0
 public object GetService(Type serviceType)
 {
     return(_context.Invoke(i => i.GetService(serviceType)));
 }
Esempio n. 6
0
 public ICacheEntry CreateEntry(object key)
 {
     return(_context.Invoke(m => m.CreateEntry(key)) ?? new MockCacheEntry(key.ToString()));
 }
Esempio n. 7
0
 public Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead,
                                             CancellationToken?cancellationToken = null)
 {
     return(_context.Invoke(f => f.SendAsync(request, completionOption, cancellationToken)));
 }
Esempio n. 8
0
 public void Execute(string value)
 {
     context.Invoke(f => f.Execute(value));
 }
 public string EchoMessage(string message)
 {
     return(_mockContext.Invoke(c => c.EchoMessage(message)));
 }
Esempio n. 10
0
 public void Register(Type serviceType, Type implementingType, string serviceName, ILifetime lifetime)
 {
     context.Invoke(m => m.Register(serviceType, implementingType, serviceName, lifetime));
 }
Esempio n. 11
0
 public Task UpdateAsync(string conferenceId, UpdateConferenceData data, CancellationToken?cancellationToken = null)
 {
     return(_context.Invoke(m => m.UpdateAsync(conferenceId, data, cancellationToken)));
 }
Esempio n. 12
0
 public Task <string> CreateAsync(CreateEndpointData data, CancellationToken?cancellationToken = default(CancellationToken?))
 {
     return(_context.Invoke(f => f.CreateAsync(data, cancellationToken)));
 }
Esempio n. 13
0
 IEnumerable <Application> IApplication.List(ApplicationQuery query, CancellationToken?cancellationToken)
 {
     return(_context.Invoke(f => f.List(query, cancellationToken)));
 }
Esempio n. 14
0
 public Task <OrderedNumber[]> SearchAndOrderLocalAsync(LocalNumberQueryForOrder query, CancellationToken?cancellationToken = default(CancellationToken?))
 {
     return(_context.Invoke(f => f.SearchAndOrderLocalAsync(query, cancellationToken)));
 }
Esempio n. 15
0
 public IEnumerable <PhoneNumber> List(PhoneNumberQuery query = null, CancellationToken?cancellationToken = default(CancellationToken?))
 {
     return(_context.Invoke(f => f.List(query, cancellationToken)));
 }
Esempio n. 16
0
 public Task <HttpResponseMessage> UpdateAsync(string callId, UpdateCallData data, CancellationToken?cancellationToken = null, bool disposeResponse = true)
 {
     return(_context.Invoke(m => m.UpdateAsync(callId, data, cancellationToken, disposeResponse)));
 }
Esempio n. 17
0
 public string Execute(string value)
 {
     return(context.Invoke(f => f.Execute(value)));
 }
Esempio n. 18
0
 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));
 }