public async Task TestSlackNotification() { var settings = Options.Create(new SuperDumpSettings()); var fakeDump = CreateFakeDump(); var pathHelper = new PathHelper("", "", ""); var dumpStorage = new FakeDumpStorage(new FakeDump[] { fakeDump }); var dumpRepo = new DumpRepository(dumpStorage, pathHelper, settings); var slackNotificationService = new SlackNotificationService(settings, dumpRepo); var msg = await slackNotificationService.GetMessageModel(fakeDump.MetaInfo); // these assertions are bare mininum for now. Could be improved. Assert.Equal(1, msg.NumNativeExceptions); var msgStr = await slackNotificationService.GetMessage(fakeDump.MetaInfo); Assert.NotNull(msgStr); }