public ITestService CreateTestService(object service)
        {
            var no = manager.GetServiceAdapter(service);

            Assert.IsNotNull(no);
            return(CreateTestService(no));
        }
Example #2
0
 public INakedObjectAdapter[] GetServices()
 {
     Log.Debug("GetServices");
     return(serviceAdapters ?? (serviceAdapters = Services.Select(service => manager.GetServiceAdapter(service)).ToArray()));
 }
Example #3
0
 public INakedObjectAdapter[] GetServices() => serviceAdapters ??= Services.Select(service => manager.GetServiceAdapter(service)).ToArray();
Example #4
0
 public virtual ServiceType GetServiceType(IServiceSpec spec)
 {
     return(Services.Where(sw => Equals(manager.GetServiceAdapter(sw.Service).Spec, spec)).Select(sw => sw.ServiceType).FirstOrDefault());
 }