public void GetSdkComponent_ShouldContainSdkAssemblyName() { var expected = Path.GetFileNameWithoutExtension(typeof(SdkServiceClient).Assembly.Location); var actual = UserAgentBuilder.GetSdkComponent(); actual.Should().StartWith(expected); }
private void AssertJsonServiceClientHasExpectedUserAgent(JsonServiceClient client) { var userAgent = client.UserAgent; userAgent.Should().StartWith("ServiceStack"); userAgent.Should().Contain("/" + UserAgentBuilder.GetSdkComponent()); userAgent.Should().Contain("/" + UserAgentBuilder.GetApplicationComponent()); }