Beispiel #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);
 }
Beispiel #2
0
 private void ExplictUse4Dp <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.UseFourDecimalPlaces(true).QueryString);
 }