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()); }
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()); }
public void ToString_BaseUrlCases_Ok(string baseUrlPart) { var target = new PssEndpoint( new NonNullableString(baseUrlPart), "GetPerson"); Assert.Equal("https://pss.com/GetPerson", target.ToString()); }