forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServiceClientBaseTests.cs
More file actions
28 lines (25 loc) · 1.07 KB
/
ServiceClientBaseTests.cs
File metadata and controls
28 lines (25 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace ServiceStack.Common.Tests.ServiceClient.Web
{
[TestFixture]
public class ServiceClientBaseTests
{
[Test]
public void SetBaseUri_FormatLoaded_LoadedFormatUsedInSyncAndAsyncUri()
{
var serviceClientBaseTester = new ServiceClientBaseTester();
String baseUri = "BaseURI";
serviceClientBaseTester.SetBaseUri(baseUri);
String expectedBaseUri = baseUri;
String expectedSyncReplyBaseUri = baseUri + "/" + serviceClientBaseTester.Format + "/syncreply/";
String expectedAsyncOneWayBaseUri = baseUri + "/" + serviceClientBaseTester.Format + "/asynconeway/";
Assert.That(serviceClientBaseTester.BaseUri, Is.EqualTo(expectedBaseUri));
Assert.That(serviceClientBaseTester.SyncReplyBaseUri, Is.EqualTo(expectedSyncReplyBaseUri));
Assert.That(serviceClientBaseTester.AsyncOneWayBaseUri, Is.EqualTo(expectedAsyncOneWayBaseUri));
}
}
}