public IScriptScope Create(ScopeTypes id, IScriptScope parent, params object[] args) { return Create((int)id, parent, args); }
public IScriptScope Create(ScopeTypes id) { return Create((int)id); }
public IScriptScope Create(ScopeTypes id, IScriptScope parent) { return Create((int)id, parent); }
public void RegisterType(ScopeTypes id, IScopeActivator instance) { RegisterType((int)id, instance); }
public IScriptScope Create(ScopeTypes id) { return(Create((int)id)); }
private static void TestScope(Scope scope, ScopeTypes expected) { Assert.NotNull(scope); Assert.Equal(expected, scope.Type); }
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()); }