示例#1
0
 private void ExplicitNotUse4Dp <T, TResult, TRequest, TResponse>(FourDecimalPlacesEndpoint <T, TResult, TRequest, TResponse> endpoint, string expected = "")
     where T : XeroReadEndpoint <T, TResult, TResponse>
     where TResponse : IXeroResponse <TResult>, new()
     where TRequest : IXeroRequest <TResult>, new()
 {
     Assert.AreEqual(expected, endpoint.UseFourDecimalPlaces(false).QueryString);
 }
示例#2
0
 private void ImplicitUse4Dp <T, TResult, TRequest, TResponse>(FourDecimalPlacesEndpoint <T, TResult, TRequest, TResponse> endpoint, string expected = "unitdp=4")
     where T : IXeroUpdateEndpoint <T, TResult, TRequest, TResponse>
     where TResponse : IXeroResponse <TResult>, new()
     where TRequest : IXeroRequest <TResult>, new()
 {
     Assert.AreEqual(expected, endpoint.QueryString);
 }
        private void ExplictUse4Dp <T, TResult, TRequest, TResponse>(FourDecimalPlacesEndpoint <T, TResult, TRequest, TResponse> endpoint, string expected = "unitdp=4")
            where T : XeroReadEndpoint <T, TResult, TResponse>
            where TResponse : IXeroResponse <TResult>, new()
            where TRequest : IXeroRequest <TResult>, new()
        {
            var e = endpoint.UseFourDecimalPlaces(true);

            Assert.AreEqual(expected, e.QueryString);
        }