[longomatch] Services should be started.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Services should be started.
- Date: Fri, 17 Apr 2015 16:23:40 +0000 (UTC)
commit 5dcf94bb1a2c8d23d796b33925183803852e8758
Author: Julien Moutte <julien fluendo com>
Date: Mon Apr 13 17:44:48 2015 +0200
Services should be started.
The constructor is not the proper way to ensure a service is started anymore.
Tests/Services/TestRenderingJobsManager.cs | 2 ++
Tests/Services/TestTemplatesService.cs | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/Tests/Services/TestRenderingJobsManager.cs b/Tests/Services/TestRenderingJobsManager.cs
index 55a10bf..d5c289e 100644
--- a/Tests/Services/TestRenderingJobsManager.cs
+++ b/Tests/Services/TestRenderingJobsManager.cs
@@ -62,6 +62,8 @@ namespace Tests.Services
// Create a rendering object with mocked interfaces
RenderingJobsManager renderer = new RenderingJobsManager (mtk, gtk);
+ // Start service
+ renderer.Start ();
renderer.AddJob (job);
diff --git a/Tests/Services/TestTemplatesService.cs b/Tests/Services/TestTemplatesService.cs
index 0405d9b..e987813 100644
--- a/Tests/Services/TestTemplatesService.cs
+++ b/Tests/Services/TestTemplatesService.cs
@@ -26,7 +26,7 @@ using LongoMatch.Core.Interfaces;
namespace Tests.Services
{
- [TestFixture()]
+ [TestFixture ()]
public class TestTemplatesService
{
[TearDown]
@@ -38,12 +38,14 @@ namespace Tests.Services
}
}
- [Test()]
+ [Test ()]
public void TestSystemTemplates ()
{
FileStorage fs = new FileStorage (
Path.Combine (Path.GetTempPath (), "TestTemplatesService"));
TemplatesService ts = new TemplatesService (fs);
+ // Start service
+ ts.Start ();
ICategoriesTemplatesProvider ctp = ts.CategoriesTemplateProvider;
// We must have at least one template provider called 'Default'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]