コード例 #1
0
 public IScriptScope Create(ScopeTypes id, IScriptScope parent, params object[] args)
 {
   return Create((int)id, parent, args);
 }
コード例 #2
0
 public IScriptScope Create(ScopeTypes id)
 {
   return Create((int)id);
 }
コード例 #3
0
 public IScriptScope Create(ScopeTypes id, IScriptScope parent)
 {
   return Create((int)id, parent);
 }
コード例 #4
0
 public void RegisterType(ScopeTypes id, IScopeActivator instance)
 {
   RegisterType((int)id, instance);
 }
コード例 #5
0
 public IScriptScope Create(ScopeTypes id)
 {
     return(Create((int)id));
 }
コード例 #6
0
 public void RegisterType(ScopeTypes id, IScopeActivator instance)
 {
     RegisterType((int)id, instance);
 }
コード例 #7
0
 private static void TestScope(Scope scope, ScopeTypes expected)
 {
     Assert.NotNull(scope);
     Assert.Equal(expected, scope.Type);
 }
コード例 #8
0
        public static void TestBasicEventWithEmptyPayload(SmartHomeResponse repo, string accessToken, string correlationToken, ScopeTypes endpointType, string endpointToken, string endpointID)
        {
            Assert.NotNull(repo.Event);
            Assert.Equal(typeof(Event), repo.Event.GetType());
            //Header Check
            TestFunctionsV3.TestHeaderV3(repo.Event.Header, accessToken, Namespaces.ALEXA, HeaderNames.RESPONSE);
            Assert.Equal(correlationToken, repo.Event.Header.CorrelationToken);
            //Endpoint Check
            Event e = repo.Event as Event;

            TestFunctionsV3.TestEndpointV3(e.Endpoint, endpointID);
            TestFunctionsV3.TestBearerTokenV3(e.Endpoint.Scope, endpointToken);
            //Payload Check
            Assert.Equal(typeof(Payload), repo.GetPayloadType());
        }