コード例 #1
0
ファイル: TestDrawings.cs プロジェクト: nofuture-git/31g
 public void TestFastPlateExample()
 {
     var myFPlate = new FastPlate("Band Practice", null, "Left side", "Middle side", "Right side");
     myFPlate.Blk("Left side").Txt("big meaty claws").Blk("Right side");
     myFPlate.Blk("Right side").Txt("d'er not just for attractin' mates").Blk("Left side");
     myFPlate.Blk("Left side").Txt("yeah - bring it on").Blk("Right side").Blk(null);
     myFPlate.Blk("Middle side").Txt("no people,").Blk("Left side").Blk(null);
     myFPlate.Blk("Middle side").Txt("lets bring it off.").Blk("Right side");
     System.Diagnostics.Debug.WriteLine(myFPlate.ToString());
 }
コード例 #2
0
ファイル: TestDrawings.cs プロジェクト: nofuture-git/31g
 public void TestFastPlateWithListValues()
 {
     var testSubject = new FastPlate("OAuth 2.0 Authorization Code Flow", null, "Resource Owner", "User-Agent", "Client", "Auth Server");
     testSubject.Blk("Client").Txt("Redirect to Auth Endpoint").Txt("client id").Txt("request scope").Txt("local state").Txt("redirection endpoint").Blk("User-Agent");
     testSubject.Blk("User-Agent").Txt("Redirect to Auth Endpoint").Blk("Auth Server");
     testSubject.Blk("Auth Server").Txt("Send back login screen").Blk("User-Agent");
     testSubject.Blk("User-Agent").Txt("Prompt For Creds").Blk("Resource Owner");
     testSubject.Blk("Resource Owner").Txt("Enter creds").Blk("User-Agent");
     testSubject.Blk("User-Agent").Txt("Post creds").Blk("Auth Server");
     testSubject.Blk("Auth Server").Txt("Auth Code & Redirect").Blk("User-Agent");
     testSubject.Blk("User-Agent").Txt("Post Auth code to Redirect").Blk("Client");
     testSubject.Blk("Client").Txt("Send Auth Code & Redirect").Blk("Auth Server");
     testSubject.Blk("Auth Server").Txt("Return Access Token").Blk("Client");
     System.Diagnostics.Debug.WriteLine(testSubject.ToString());
 }
コード例 #3
0
ファイル: TestDrawings.cs プロジェクト: nofuture-git/31g
        public void TestFastPlate()
        {
            var testSubject = new FastPlate("OAuth 2.0 Authorization Code Flow", null, "Resource Owner", "User-Agent", "Client", "Auth Server");

            testSubject.Blk("Client").Txt("Redirect to Auth Endpoint and a whole bunch of stuff in the request has to go as well").Blk("User-Agent");
            testSubject.Blk("User-Agent").Txt("Redirect to Auth Endpoint").Blk("Auth Server");
            testSubject.Blk("Auth Server").Txt("Send back login screen").Blk("User-Agent");
            testSubject.Blk("User-Agent").Txt("Prompt For Creds").Blk("Resource Owner");
            testSubject.Blk("Resource Owner").Txt("Enter creds").Blk("User-Agent");
            testSubject.Blk("User-Agent").Txt("Post creds").Blk("Auth Server");
            testSubject.Blk("Auth Server").Txt("Auth Code & Redirect").Blk("User-Agent");
            testSubject.Blk("User-Agent").Txt("Post Auth code to Redirect").Blk("Client");
            testSubject.Blk("Client").Txt("Send Auth Code & Redirect").Blk("Auth Server");
            testSubject.Blk("Auth Server").Txt("Return Access Token").Blk("Client");

            testSubject.Blk("User-Agent").Txt("Start Dots").Blk("Resource Owner");
            testSubject.Blk("Resource Owner").Txt("More Dots").Blk("Auth Server");
            testSubject.Blk("Auth Server").Txt("More Dots").Blk("User-Agent");
            testSubject.Blk("User-Agent").Txt("Stop Dots").Blk("Client");

            System.Diagnostics.Debug.WriteLine(testSubject.ToString());
        }