diff --git a/MSDyn365BC.Ntfy.Test/doubles/DummyNtfyTypeNTSTM.Codeunit.al b/MSDyn365BC.Ntfy.Test/doubles/DummyNtfyTypeNTSTM.Codeunit.al index a70c4b5..e355928 100644 --- a/MSDyn365BC.Ntfy.Test/doubles/DummyNtfyTypeNTSTM.Codeunit.al +++ b/MSDyn365BC.Ntfy.Test/doubles/DummyNtfyTypeNTSTM.Codeunit.al @@ -57,4 +57,9 @@ codeunit 50006 DummyNtfyTypeNTSTM implements INtfyEventNTSTM begin exit(GetMessageWasCalled); end; + + procedure GetTitle(NtfyEvent: Record NtfyEventNTSTM; Params: Dictionary of [Text, Text]) ReturnValue: Text[150] + begin + + end; } \ No newline at end of file diff --git a/MSDyn365BC.Ntfy.Test/doubles/MarkingTestTypeNTSTM.Codeunit.al b/MSDyn365BC.Ntfy.Test/doubles/MarkingTestTypeNTSTM.Codeunit.al index 6868b9a..5c3b38e 100644 --- a/MSDyn365BC.Ntfy.Test/doubles/MarkingTestTypeNTSTM.Codeunit.al +++ b/MSDyn365BC.Ntfy.Test/doubles/MarkingTestTypeNTSTM.Codeunit.al @@ -12,7 +12,7 @@ codeunit 50008 MarkingTestTypeNTSTM implements INtfyEventNTSTM procedure FilterNtfyEntriesBeforeBatchSend(var NtfyEvent: Record NtfyEventNTSTM; Params: Dictionary of [Text, Text]); begin - NtfyEvent.SetRange(NtfyTopic, 'true'); + NtfyEvent.SetRange(Topic, 'true'); end; procedure DoCallNtfyEvent(NtfyEvent: Record NtfyEventNTSTM; Params: Dictionary of [Text, Text]) ReturnValue: Boolean; @@ -25,4 +25,8 @@ codeunit 50008 MarkingTestTypeNTSTM implements INtfyEventNTSTM end; + procedure GetTitle(NtfyEvent: Record NtfyEventNTSTM; Params: Dictionary of [Text, Text]) ReturnValue: Text[150] + begin + + end; } \ No newline at end of file diff --git a/MSDyn365BC.Ntfy.Test/doubles/RestWrapBodyPassNTSTM.Codeunit.al b/MSDyn365BC.Ntfy.Test/doubles/RestWrapBodyPassNTSTM.Codeunit.al index a56db42..c00909a 100644 --- a/MSDyn365BC.Ntfy.Test/doubles/RestWrapBodyPassNTSTM.Codeunit.al +++ b/MSDyn365BC.Ntfy.Test/doubles/RestWrapBodyPassNTSTM.Codeunit.al @@ -15,4 +15,9 @@ codeunit 50003 RestWrapBodyPassNTSTM implements IRestWrapperNTSTM begin Assert.AreEqual(TempContentText, Content.AsText(), 'Content is not the same'); end; + + procedure SetDefaultRequestHeader(Name: Text; Value: Text) + begin + + end; } \ No newline at end of file diff --git a/MSDyn365BC.Ntfy.Test/doubles/RestWrapperTestBodyNTSTM.Codeunit.al b/MSDyn365BC.Ntfy.Test/doubles/RestWrapperTestBodyNTSTM.Codeunit.al index 0214679..38b579e 100644 --- a/MSDyn365BC.Ntfy.Test/doubles/RestWrapperTestBodyNTSTM.Codeunit.al +++ b/MSDyn365BC.Ntfy.Test/doubles/RestWrapperTestBodyNTSTM.Codeunit.al @@ -8,4 +8,9 @@ codeunit 50001 RestWrapperTestBodyNTSTM implements IRestWrapperNTSTM procedure Post(RequestUri: Text; Content: Codeunit System.RestClient."Http Content") HttpResponseMessage: Codeunit System.RestClient."Http Response Message" begin end; + + procedure SetDefaultRequestHeader(Name: Text; Value: Text) + begin + + end; } \ No newline at end of file diff --git a/MSDyn365BC.Ntfy.Test/doubles/RestWrapperTestPostNTSTM.Codeunit.al b/MSDyn365BC.Ntfy.Test/doubles/RestWrapperTestPostNTSTM.Codeunit.al index ceef333..fd507e2 100644 --- a/MSDyn365BC.Ntfy.Test/doubles/RestWrapperTestPostNTSTM.Codeunit.al +++ b/MSDyn365BC.Ntfy.Test/doubles/RestWrapperTestPostNTSTM.Codeunit.al @@ -8,4 +8,9 @@ codeunit 50002 RestWrapperTestPostNTSTM implements IRestWrapperNTSTM begin Error('Post was called with RequestUri: %1', RequestUri); end; + + procedure SetDefaultRequestHeader(Name: Text; Value: Text) + begin + + end; } \ No newline at end of file diff --git a/MSDyn365BC.Ntfy.Test/tests/TestSendNotifications.Codeunit.al b/MSDyn365BC.Ntfy.Test/tests/TestSendNotifications.Codeunit.al index 7b356ad..1ed8ed6 100644 --- a/MSDyn365BC.Ntfy.Test/tests/TestSendNotifications.Codeunit.al +++ b/MSDyn365BC.Ntfy.Test/tests/TestSendNotifications.Codeunit.al @@ -15,7 +15,7 @@ codeunit 50004 "TestSendNotifications" begin NtfyEvent.Init(); // NtfyEvent.NtfyMessage := 'Hello World'; //fixme - NtfyEvent.NtfyTopic := 'Hello World'; + NtfyEvent.Topic := 'Hello World'; NtfyEvent.EventType := NtfyEvent.EventType::DummyNtfyType; if not NtfyEvent.Insert() then; NtfyEvent.SendNotifications(DummyNtfyType, NtfyEvent.EventType::DummyNtfyType, Params, RunBatchWrapperEmpty); @@ -36,12 +36,12 @@ codeunit 50004 "TestSendNotifications" begin NtfyEvent.Init(); // NtfyEvent.NtfyMessage := 'true'; //fixme - NtfyEvent.NtfyTopic := 'true'; + NtfyEvent.Topic := 'true'; NtfyEvent.EventType := NtfyEvent.EventType::DummyNtfyType; if not NtfyEvent.Insert() then; NtfyEvent.Init(); // NtfyEvent.NtfyMessage := 'false'; //fixme - NtfyEvent.NtfyTopic := 'false'; + NtfyEvent.Topic := 'false'; NtfyEvent.EventType := NtfyEvent.EventType::DummyNtfyType; if not NtfyEvent.Insert() then;