public static void TestBasicHealthCheckProperty(Property p, ConnectivityModes expectedMode, DateTime dateTime) { TestFunctionsV3.TestContextProperty(p, PropertyNames.CONNECTIVITY, Namespaces.ALEXA_ENDPOINTHEALTH, dateTime, 200, null); Assert.Equal(typeof(ConnectivityPropertyValue), p.Value.GetType()); ConnectivityPropertyValue conn = p.Value as ConnectivityPropertyValue; Assert.Equal(expectedMode, conn.Value); }
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()); }