Esempio n. 1
0
        public void ToString_EndpointWithSlashCases_Ok(string endpointPart)
        {
            var target = new PssEndpoint(
                new NonNullableString("https://pss.com/api/Pss"), endpointPart);

            Assert.Equal("https://pss.com/api/Pss/GetPerson/", target.ToString());
        }
Esempio n. 2
0
        public void ToString_Endpoint_WithQuery_Ok(string endpointPart)
        {
            var target = new PssEndpoint(
                new NonNullableString("https://pss.com/api/Pss"), endpointPart);

            Assert.Equal("https://pss.com/api/Pss/GetPerson?q=123", target.ToString());
        }
Esempio n. 3
0
        public void ToString_BaseUrlCases_Ok(string baseUrlPart)
        {
            var target = new PssEndpoint(
                new NonNullableString(baseUrlPart), "GetPerson");

            Assert.Equal("https://pss.com/GetPerson", target.ToString());
        }