예제 #1
0
        static IndirectionStub NewStubNowGet()
        {
            var stubsXml = @"<?xml version=""1.0"" encoding=""utf-8""?>
<stubs>
  <add name=""NowGet"" alias=""NowGet"">
    <RuntimeMethodInfo xmlns:i=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:x=""http://www.w3.org/2001/XMLSchema"" z:Id=""1"" z:FactoryType=""MemberInfoSerializationHolder"" z:Type=""System.Reflection.MemberInfoSerializationHolder"" z:Assembly=""0"" xmlns:z=""http://schemas.microsoft.com/2003/10/Serialization/"" xmlns=""http://schemas.datacontract.org/2004/07/System.Reflection"">
          <Name z:Id=""2"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">get_Now</Name>
          <AssemblyName z:Id=""3"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyName>
          <ClassName z:Id=""4"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">System.DateTime</ClassName>
          <Signature z:Id=""5"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">System.DateTime get_Now()</Signature>
          <Signature2 z:Id=""6"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">System.DateTime get_Now()</Signature2>
          <MemberType z:Id=""7"" z:Type=""System.Int32"" z:Assembly=""0"" xmlns="""">8</MemberType>
          <GenericArguments i:nil=""true"" xmlns="""" />
        </RuntimeMethodInfo>
  </add>
</stubs>";
            var section  = new PrigSection();

            section.DeserializeStubs(stubsXml);
            return(section.Stubs.First());
        }
예제 #2
0
        static IndirectionStub NewStubValidateStateULTableStatus()
        {
            var stubsXml = @"<?xml version=""1.0"" encoding=""utf-8""?>
<stubs>
  <add name=""ValidateStateULTableStatus"" alias=""ValidateStateULTableStatus"">
    <RuntimeMethodInfo xmlns:i=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:x=""http://www.w3.org/2001/XMLSchema"" z:Id=""1"" z:FactoryType=""MemberInfoSerializationHolder"" z:Type=""System.Reflection.MemberInfoSerializationHolder"" z:Assembly=""0"" xmlns:z=""http://schemas.microsoft.com/2003/10/Serialization/"" xmlns=""http://schemas.datacontract.org/2004/07/System.Reflection"">
      <Name z:Id=""2"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">ValidateState</Name>
      <AssemblyName z:Id=""3"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">Test.Urasandesu.Prig.Framework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=acabb3ef0ebf69ce</AssemblyName>
      <ClassName z:Id=""4"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">Test.Urasandesu.Prig.Framework.ULColumns</ClassName>
      <Signature z:Id=""5"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">Void ValidateState(Test.Urasandesu.Prig.Framework.ULTableStatus)</Signature>
      <Signature2 z:Id=""6"" z:Type=""System.String"" z:Assembly=""0"" xmlns="""">System.Void ValidateState(Test.Urasandesu.Prig.Framework.ULTableStatus)</Signature2>
      <MemberType z:Id=""7"" z:Type=""System.Int32"" z:Assembly=""0"" xmlns="""">8</MemberType>
      <GenericArguments i:nil=""true"" xmlns="""" />
    </RuntimeMethodInfo>
  </add>
</stubs>";
            var section  = new PrigSection();

            section.DeserializeStubs(stubsXml);
            return(section.Stubs.First());
        }