示例#1
0
        public void Can_get_subscriptionID()
        {
            // arrange
            var provider = new AzureDevOpsEventsProcessor.Providers.JsonDataProvider(Helpers.ServiceHookTestData.GetEventJson("git.pullrequest.created"));

            // act
            var actual = provider.GetSubsriptionID();

            // assert
            Assert.AreEqual("00000000-0000-0000-0000-000000000000", actual);
        }
示例#2
0
        public void Can_get_event_type()
        {
            // arrange
            var provider = new AzureDevOpsEventsProcessor.Providers.JsonDataProvider(Helpers.ServiceHookTestData.GetEventJson("workitem.updated"));

            // act
            var actual = provider.GetEventType();

            // assert
            Assert.AreEqual("workitem.updated", actual);
        }