Example #1
0
        public static T Create <T>(INitroServiceClient serviceClient, INitroRequestOptions options)
        {
            var targetConfigurationInstance = GetTargetConfigurationInstance(typeof(T));

            targetConfigurationInstance.Options = options;

            return(GetTargetCommandInstance(
                       typeof(T),
                       serviceClient,
                       targetConfigurationInstance));
        }
Example #2
0
        public static T Create <T>(INitroServiceClient serviceClient, INitroRequestData data, INitroRequestOptions options)
        {
            var targetDataRoot = GetTargetConfigurationDataRootInstance(typeof(T), data);
            var targetConfigurationInstance = GetTargetConfigurationInstance(typeof(T), targetDataRoot);

            targetConfigurationInstance.Options = options;

            //targetConfigurationInstance.DataRoot = GetTargetConfigurationDataRootInstance(typeof(T), data);

            return(GetTargetCommandInstance(
                       typeof(T),
                       serviceClient,
                       targetConfigurationInstance));
        }
        public void NitroRequestOptionsDefaultTest(INitroRequestOptions data, string expected)
        {
            var result = data.ToString();

            Assert.Equal(expected, result);
        }