Last change
on this file since 3976 was
3976,
checked in by bfarka, 14 years ago
|
added first service method and unittest for service
added abstract unit test for starting a service host (1046)
|
File size:
711 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.ServiceModel;
|
---|
6 | using Service.Services.Administration;
|
---|
7 | using Microsoft.VisualStudio.TestTools.UnitTesting;
|
---|
8 |
|
---|
9 | namespace UnitTests.service {
|
---|
10 | public abstract class AbstractHeuristicLabServiceTest : AbstractHeuristicLabTest{
|
---|
11 |
|
---|
12 | private ServiceHost sh;
|
---|
13 |
|
---|
14 | [TestInitialize()]
|
---|
15 | public override void updateDBConnection() {
|
---|
16 | base.updateDBConnection();
|
---|
17 | sh = new ServiceHost(typeof(AuthorizationManagementService));
|
---|
18 | sh.Open();
|
---|
19 | }
|
---|
20 |
|
---|
21 | [TestCleanup()]
|
---|
22 | public virtual void closeDBConnection() {
|
---|
23 | sh.Close();
|
---|
24 | base.closeDBConnection();
|
---|
25 |
|
---|
26 | }
|
---|
27 | }
|
---|
28 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.