DocSpace-client/thirdparty/rackspace-net-sdk/test/Rackspace.UnitTests/RackConnect/v3/RackConnectServiceTests.cs
2021-05-18 12:23:19 +03:00

28 lines
638 B
C#

using System;
using Flurl.Http;
using Xunit;
namespace Rackspace.RackConnect.v3
{
public class RackConnectServiceTests : IDisposable
{
public RackConnectServiceTests()
{
RackspaceNet.ResetDefaults();
}
public void Dispose()
{
RackspaceNet.ResetDefaults();
}
[Fact]
public void RackspaceNetIsConfiguredByService()
{
Assert.Null(FlurlHttp.Configuration.BeforeCall);
new RackConnectService(Stubs.IdentityService, "region");
Assert.NotNull(FlurlHttp.Configuration.BeforeCall);
}
}
}