Datasets:
Owner
stringclasses 774
values | Repo
stringclasses 979
values | SolutionFilePath
stringlengths 32
160
| ProjectFilePath
stringlengths 47
196
| FilePath
stringlengths 43
230
| Namespace
stringlengths 5
182
⌀ | ClassDeclaration
stringlengths 2
78
| ClassFields
stringlengths 2
458k
| UsingStatements
stringlengths 9
3.14k
| TestFramework
stringclasses 4
values | LanguageFramework
stringclasses 236
values | ClassBody
stringlengths 100
627k
| ClassBodyStartPos
int64 16
176k
| ClassBodyEndPos
int64 179
636k
| SourceBody
stringlengths 32
3.67M
⌀ |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fluentmigrator | fluentmigrator | F:\Projects\TestMap\Temp\fluentmigrator\FluentMigrator.sln | F:\Projects\TestMap\Temp\fluentmigrator\test\FluentMigrator.Tests\FluentMigrator.Tests.csproj | F:\Projects\TestMap\Temp\fluentmigrator\test\FluentMigrator.Tests\Unit\Generators\Oracle\OracleQuoterTest.cs | FluentMigrator.Tests.Unit.Generators.Oracle
| OracleQuoterTest | ['private IQuoter _quoter;', 'private const string LargeNonUnicodeStringChunked = @"TO_CLOB(\'🐈\nFlèx claws on the human\'\'s belly and purr like a lawnmower scratch at door to be let outside, get let out then scratch at door immmediately after to be let back in. Meowwww furrier and even more furrier hairball sniff other cat\'\'s butt and hang jaw half open thereafter. Sniff sniff allways wanting food, but eat owner\'\'s food. Meowing non stop for food chew the plant. Sniff catnip and act crazy really likes hummus so eat all the power cords. That box? i can fit in that box love to play with owner\'\'s hair tie. Destroy couch destroy house in 5 seconds or catto munch salmono. Lick plastic bags fish i must find my red catnip fishy fish but when owners are asleep, cry for no apparent reason. Sniff other cat\'\'s butt and hang jaw half open thereafter. Leave hair on owner\'\'s clothes dismember a mouse and then regurgitate parts of it on the family room floor swat at dog, so i is not fat, i is fluffy shred all toilet paper and spread around the house the dog smells bad. Make plans to dominate world and then take a nap sit on human, yet walk on car leaving trail of paw prints on hood and windshield lick plastic bags. Be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day annoy the old grumpy cat, start a fight and then retreat to wash when i lose suddenly go on wild-eyed crazy rampage my water bowl is clean and freshly replenished, so i\'\'ll drink from the toilet i is not fat, i is fluffy yet spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce or i show my fluffy belly but it\'\'s a trap! if you pet it i will tear up your hand. I want to go outside let me go outside nevermind inside is better nyan fluffness ahh cucumber! hate dog, where is my slave? I\'\'m getting hungry scratch at the door then walk away or cough hairball on conveniently placed pants ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss. Mouse is good you understand your place in my world or hide head under blanket so no one can see. Meow in empty rooms i is not fat, i is fluffy or howl on top of tall thing eat a rug and furry furry hairs everywhere oh no human coming lie on counter don\'\'t get off counter, so meow meow so pet me pet me don\'\'t pet me, and if human is on laptop sit on the keyboard. I will ruin the couch with my claws gnaw the corn cob and plan steps for world domination. Sit on human get video posted to internet for chasing red dot always ensure to lay down in such a manner that tail can lightly brush human\'\'s nose relentlessly pursues moth and being gorgeous with belly side up, meow meow we are 3 small kittens sleeping most of our time, we are around 15 weeks old i think, i don’t know i can’t count. Good now the other hand, too find empty spot in cupboard and sleep all day yet chase the pig around the house and eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap leave dead animals as gifts. Eat all the power cords poop in litter box, scratch the walls.\nGood morning sunshine find something else more interesting i like cats because they are fät and fluffy so groom forever, stretch tongue and leave it slightly out, blep, purr like a car engine oh yes, there is my human slave woman she does best pats ever that all i like about her hiss meow litter box is life. Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce good morning sunshine favor packaging over toy or hack up furballs. Stretch claws in your leg and leave buried treasure in the sandbox for the toddlers sit and stare or Gate keepers of hell get my claw stuck in the dog\'\'s ear. Humans,humans, humans oh how much they love us felines we are the center of attention they feed, they clean fish i must find my red catnip fishy fish. Scream at teh bath love and coo around boyfriend who purrs\') || TO_CLOB(\' and makes the perfect moonlight eyes so i can purr and swat the glittery gleaming yarn to him (the yarn is from a $125 sweater) leave dead animals as gifts slap the dog because cats rule for claw your carpet in places everyone can see - why hide my amazing artistic clawing skills?. Furrier and even more furrier hairball purr when give birth always hungry for thinking longingly about tuna brine, for meow in empty rooms. You call this cat food ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss cats are cute or attack the child or kitten is playing with dead mouse. Bite off human\'\'s toes cats woo for chase after silly colored fish toys around the house spit up on light gray carpet instead of adjacent linoleum make meme, make cute face. Eat an easter feather as if it were a bird then burp victoriously, but tender look at dog hiiiiiisssss, for hit you unexpectedly pet my belly, you know you want to; seize the hand and shred it! eat too much then proceed to regurgitate all over living room carpet while humans eat dinner or Gate keepers of hell.\nLay on arms while you\'\'re using the keyboard run as fast as i can into another room for no reason pee on walls it smells like breakfast but find box a little too small and curl up with fur hanging out ears back wide eyed and x. Eat owner\'\'s food crusty butthole. Toy mouse squeak roll over. Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce present belly, scratch hand when stroked, so thug cat . Sleeps on my head i will be pet i will be pet and then i will hiss or jump up to edge of bath, fall in then scramble in a mad panic to get out go into a room to decide you didn\'\'t want to be in there anyway yet munch on tasty moths. Find empty spot in cupboard and sleep all day eat a rug and furry furry hairs everywhere oh no human coming lie on counter don\'\'t get off counter so jump on human and sleep on her all night long be long in the bed, purr in the morning and then give a bite to every human around for not waking up request food, purr loud scratch the walls, the floor, the windows, the humans inspect anything brought into the house, sleep yet destroy couch, but nya nya nyan. Sit by the fire pounce on unsuspecting person yet cats are the world so terrorize the hundred-and-twenty-pound rottweiler and steal his bed, not sorry so claw your carpet in places everyone can see - why hide my amazing artistic clawing skills? so kick up litter. Is good you understand your place in my world i like to spend my days sleeping and eating fishes that my human fished for me we live on a luxurious yacht, sailing proudly under the sun, i like to walk on the deck, watching the horizon, dreaming of a good bowl of milk flex claws on the human\'\'s belly and purr like a lawnmower purr for no reason. Milk the cow chirp at birds or cats making all the muffins. Lick butt lick human with sandpaper tongue. Make meme, make cute face kitty scratches couch bad kitty i is not fat, i is fluffy pushes butt to face mesmerizing birds hunt by meowing loudly at 5am next to human slave food dispenser. Under the bed hide at bottom of staircase to trip human yet toy mouse squeak roll over, so you\'\'re just gonna scroll by without saying meowdy?. Cats are a queer kind of folk cat slap dog in face the fat cat sat on the mat bat away with paws yet cats are the world. Ignore the squirrels, you\'\'ll never catch them anyway open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow! have a lot of grump in yourself because you can\'\'t forget to be grumpy and not be like king grumpy cat so poop on couch or fart in owners food , chase dog then run away. Mark territory get suspicious of own shadow then go play with toilette paper so stinky cat or purrr purr littel cat, little cat purr purr. Lounge in doorway cough hairball, eat toilet paper poop on couch purr like an angel for sleep nap or good no\') || TO_CLOB(\'w the other hand, too. Swipe at owner\'\'s legs crash against wall but walk away like nothing happened stretch. Lick left leg for ninety minutes, still dirty chase red laser dot curl into a furry donut tickle my belly at your own peril i will pester for food when you\'\'re in the kitchen even if it\'\'s salad . See brother cat receive pets, attack out of jealousy bleghbleghvomit my furball really tie the room together lick left leg for ninety minutes, still dirty but cats woo. Meowwww somehow manage to catch a bird but have no idea what to do next, so play with it until it dies of shock push your water glass on the floor the fat cat sat on the mat bat away with paws. Ask to be pet then attack owners hand mice and swipe at owner\'\'s legs. Adventure always cereal boxes make for five star accommodation . Cats are a queer kind of folk cat not kitten around yet good morning sunshine so soft kitty warm kitty little ball of furr howl on top of tall thing but poop on grasses. Hunt by meowing loudly at 5am next to human slave food dispenser meow loudly just to annoy owners meow.\nRun up and down stairs bring 🐱 your owner a dead bird or hiiiiiiiiii feed me now murder hooman toes then cats take over the world see brother cat receive pets, attack out of jealousy, and is good you understand your place in my world. Cough hairball on conveniently placed pants. No, you can\'\'t close the door, i haven\'\'t decided whether or not i wanna go out scamper paw your face to wake you up in the morning enslave the hooman for immediately regret falling into bathtub yet do not try to mix old food with new one to fool me!. Being gorgeous with belly side up purr and poop on couch, steal the warm chair right after you get up. Man running from cops stops to pet cats, goes to jail white cat sleeps on a black shirt yet purrrrrr jump five feet high and sideways when a shadow moves.\nCough furball cat ass trophy cat not kitten around ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss. My left donut is missing, as is my right. Lounge in doorway. Lounge in doorway meow go back to sleep owner brings food and water tries to pet on head, so scratch get sprayed by water because bad cat. Touch water with paw then recoil in horror find empty spot in cupboard and sleep all day morning beauty routine of licking self or catching very fast laser pointer. Cats are cute spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce or spill litter box, scratch at owner, destroy all furniture, especially couch. Being gorgeous with belly side up chase dog then run away destroy the blinds hell is other people yet white cat sleeps on a black shirt refuse to drink water except out of someone\'\'s glass so pose purrfectly to show my beauty. In the middle of the night i crawl onto your chest and purr gently to help you sleep love. Hit you unexpectedly i\'\'m going to lap some water out of my master\'\'s cup meow. Found somthing move i bite it tail. You call this cat food claw at curtains stretch and yawn nibble on tuna ignore human bite human hand yet what the heck just happened, something feels fishy but if it fits i sits but burrow under covers stare at imaginary bug purrrrrr. Stare at ceiling light what the heck just happened, something feels fishy i heard this rumor where the humans are our owners, pfft, what do they know?! yet sit in a box for hours but if human is on laptop sit on the keyboard. Milk the cow meowing chowing and wowing give attitude, put toy mouse in food bowl run out of litter box at full speed . Kitty poochy scratch yet walk on car leaving trail of paw prints on hood and windshield and if human is on laptop sit on the keyboard ignore the squirrels, you\'\'ll never catch them anyway. Ears back wide eyed poop in the plant pot love you, then bite you sleep on dog bed, force dog to sleep on floor yet i’m so hungry i’m so hungry but ew not for that so i am th\') || TO_CLOB(\'e best. As lick i the shoes eat all the power cords. Intently stare at the same spot sit on human they not getting up ever, attack feet. Plan steps for world domination. Chew iPad power cord present belly, scratch hand when stroked chase mice intrigued by the shower, bite off human\'\'s toes.\nRub my belly hiss murf pratt ungow ungow. Cough furball licks your face when in doubt, wash. Fight own tail nya nya nyan. Try to jump onto window and fall while scratching at wall. Love and coo around boyfriend who purrs and makes the perfect moonlight eyes so i can purr and swat the glittery gleaming yarn to him (the yarn is from a $125 sweater) climb a tree, wait for a fireman jump to fireman then scratch his face. Get video posted to internet for chasing red dot get scared by doggo also cucumerro and plop down in the middle where everybody walks and run at 3am, cats are cute if it fits, i sits flee in terror at cucumber discovered on floor. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff sleep in the bathroom sink or drink water out of the faucet. Rub face on owner if it smells like fish eat as much as you wish, yet jump off balcony, onto stranger\'\'s head. Kitty power immediately regret falling into bathtub for i is not fat, i is fluffy yet bite nose of your human bring your owner a dead bird. Loved it, hated it, loved it, hated it hell is other people trip owner up in kitchen i want food. If it fits, i sits leave fur on owners clothes run as fast as i can into another room for no reason side-eyes your ""jerk"" other hand while being petted for wake up human for food at 4am.\nAttack dog, run away and pretend to be victim stare at the wall, play with food and get confused by dust attack the child for swat at dog, or chase after silly colored fish toys around the house. Wake up wander around the house making large amounts of noise jump on top of your human\'\'s bed and fall asleep again destroy house in 5 seconds i love cats i am one wake up scratch humans leg for food then purr then i have a and relax. Meowwww stare at the wall, play with food and get confused by dust and destroy house in 5 seconds. Has closed eyes but still sees you sit in box. Lick arm hair put toy mouse in food bowl run out of litter box at full speed sit by the fire and jump five feet high and sideways when a shadow moves or love me! wack the mini furry mouse, cat walks in keyboard . Disappear for four days and return home with an expensive injury; bite the vet love you, then bite you for stares at human while pushing stuff off a table, cats are fats i like to pets them they like to meow back. Mew love you, then bite you or hiding behind the couch until lured out by a feathery toy and refuse to leave cardboard box. Chase after silly colored fish toys around the house demand to be let outside at once, and expect owner to wait for me as i think about it grab pompom in mouth and put in water dish for fall asleep on the washing machine loved it, hated it, loved it, hated it what the heck just happened, something feels fishy yet check cat door for ambush 10 times before coming in. I\'\'m bored inside, let me out i\'\'m lonely outside, let me in i can\'\'t make up my mind whether to go in or out, guess i\'\'ll just stand partway in and partway out, contemplating the universe for half an hour how dare you nudge me with your foot?!?! leap into the air in greatest offense! morning beauty routine of licking self. Chew master\'\'s slippers give me some of your food give me some of your food give me some of your food meh, i don\'\'t want it. Chill on the couch table purr when give birth run around the house at 4 in the morning playing with balls of wool. Eat a rug and furry furry hairs everywhere oh no human coming lie on counter don\'\'t get off counter litter box is life rub whiskers on bare sk\') || TO_CLOB(\'in act innocent paw at beetle and eat it before it gets away i\'\'m bored inside, let me out i\'\'m lonely outside, let me in i can\'\'t make up my mind whether to go in or out, guess i\'\'ll just stand partway in and partway out, contemplating the universe for half an hour how dare you nudge me with your foot?!?! leap into the air in greatest offense! meow meow yet loves cheeseburgers. That box? i can fit in that box refuse to drink water except out of someone\'\'s glass. Mewl for food at 4am your pillow is now my pet bed decide to want nothing to do with my owner today sit by the fire. Cat jumps and falls onto the couch purrs and wakes up in a new dimension filled with kitty litter meow meow yummy there is a bunch of cats hanging around eating catnip carefully drink from water glass and then spill it everywhere and proceed to lick the puddle but rub my belly hiss good morning sunshine. Try to hold own back foot to clean it but foot reflexively kicks you in face, go into a rage and bite own foot, hard instead of drinking water from the cat bowl, make sure to steal water from the toilet. If it smells like fish eat as much as you wish i love cats i am one wake up scratch humans leg for food then purr then i have a and relax annoy owner until he gives you food say meow repeatedly until belly rubs, feels good yet sleep reaches under door into adjacent room. Eat fish on floor hide at bottom of staircase to trip human. Paw at beetle and eat it before it gets away friends are not food. Chase after silly colored fish toys around the house meow all night so hiss at vacuum cleaner have my breakfast spaghetti yarn for love me!. Refuse to drink water except out of someone\'\'s glass claw at curtains stretch and yawn nibble on tuna ignore human bite human hand give attitude, yet plop down in the middle where everybody walks give attitude, and catch eat throw up catch eat throw up bad birds give me attention or face the wrath of my claws. Caticus cuteicus. Destroy couch sit on the laptop sit and stare. Jump up to edge of bath, fall in then scramble in a mad panic to get out run up and down stairs, and ask to be pet then attack owners hand.\nSpend six hours per day washing, but still have a crusty butthole sugar, my siamese, stalks me (in a good way), day and night . Stare out cat door then go back inside flee in terror at cucumber discovered on floor. Refuse to leave cardboard box sun bathe ignore the squirrels, you\'\'ll never catch them anyway. Run around the house at 4 in the morning cat meoooow i iz master of hoomaan, not hoomaan master of i, oooh damn dat dog leave fur on owners clothes. Knock over christmas tree immediately regret falling into bathtub check cat door for ambush 10 times before coming in yet kitty loves pigs for stretch cat mojo , and eat a plant, kill a hand. Look at dog hiiiiiisssss pee on walls it smells like breakfast. Eats owners hair then claws head. Grab pompom in mouth and put in water dish eat a rug and furry furry hairs everywhere oh no human coming lie on counter don\'\'t get off counter but meow meow, i tell my human or scratch leg; meow for can opener to feed me for chew master\'\'s slippers. There\'\'s a forty year old lady there let us feast.\nI heard this rumor where the humans are our owners 😻, pfft, what do they know?! who\'\'s the baby, stare at wall turn and meow stare at wall some more meow again continue staring so hunt anything that moves my left donut is missing, as is my right, for stuff and things. Pet me pet me don\'\'t pet me. Sugar, my siamese, stalks me (in a good way), day and night . Instead of drinking water from the cat bowl, make sure to steal water from the toilet i love cuddles catching very fast laser pointer, for jump up to edge of bath, fall in then scramble in a mad panic to get out, or woops poop hanging from butt must get rid run run around house drag poop on floor maybe it comes off woops left bro\') || TO_CLOB(\'wn marks on floor human slave clean lick butt now as lick i the shoes. Stuff and things being gorgeous with belly side up ignore the squirrels, you\'\'ll never catch them anyway pounce on unsuspecting person eat and than sleep on your face. Cat cat moo moo lick ears lick paws lick butt, for poop in a handbag look delicious and drink the soapy mopping up water then puke giant foamy fur-balls. Fight own tail Gate keepers of hell or favor packaging over toy sleep all day whilst slave is at work, play all night whilst slave is sleeping where is my slave? I\'\'m getting hungry, yet immediately regret falling into bathtub. Pet me pet me don\'\'t pet me instantly break out into full speed gallop across the house for no reason. Gnaw the corn cob scratch the postman wake up lick paw wake up owner meow meow poop in a handbag look delicious and drink the soapy mopping up water then puke giant foamy fur-balls so plan steps for world domination destroy couch, chase laser and push your water glass on the floor. Check cat door for ambush 10 times before coming in always ensure to lay down in such a manner that tail can lightly brush human\'\'s nose so cats are the world and snuggles up to shoulders or knees and purrs you to sleep. Eat a plant, kill a hand eat fish on floor see owner, run in terror pretend not to be evil. Leave hair on owner\'\'s clothes carefully drink from water glass and then spill it everywhere and proceed to lick the puddle destroy couch as revenge there\'\'s a forty year old lady there let us feast if it smells like fish eat as much as you wish. Tickle my belly at your own peril i will pester for food when you\'\'re in the kitchen even if it\'\'s salad intrigued by the shower, but intently sniff hand stretch, yet eat the rubberband and experiences short bursts of poo-phoria after going to the loo cat mojo . Run around the house at 4 in the morning all of a sudden cat goes crazy, scream at teh bath and groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked or my slave human didn\'\'t give me any food so i pooped on the floor and you have cat to be kitten me right meow bite nose of your human. Hate dog chew on cable, yet i’m so hungry i’m so hungry but ew not for that chase red laser dot pet me pet me pet me pet me, bite, scratch, why are you petting me play riveting piece on synthesizer keyboard purr purr purr until owner pets why owner not pet me hiss scratch meow. Put butt in owner\'\'s face then cats take over the world cat meoooow i iz master of hoomaan, not hoomaan master of i, oooh damn dat dog. Dont wait for the storm to pass, dance in the rain sleep all day whilst slave is at work, play all night whilst slave is sleeping curl into a furry donut let me in let me out let me in let me out let me in let me out who broke this door anyway , for push your water glass on the floor yet destroy couch as revenge. Bleghbleghvomit my furball really tie the room together meow in empty rooms and eat grass, throw it back up for rub butt on table adventure always. Climb a tree, wait for a fireman jump to fireman then scratch his face leave fur on owners clothes if human is on laptop sit on the keyboard human clearly uses close to one life a night no one naps that long so i revive by standing on chestawaken!, for brown cats with pink ears, and spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce yet plop down in the middle where everybody walks. Groom forever, stretch tongue and leave it slightly out, blep scratch the furniture eat all the power cords. Love me! nya nya nyan run around the house at 4 in the morning. Sleep going to catch the red dot today going to catch the red dot today, curl up and sleep on the freshly laundered towels open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow!, tickle my belly at your own peril i will pester fo\') || TO_CLOB(\'r food when you\'\'re in the kitchen even if it\'\'s salad . My slave human didn\'\'t give me any food so i pooped on the floor see brother cat receive pets, attack out of jealousy, or hide when guests come over caticus cuteicus. You are a captive audience while sitting on the toilet, pet me peer out window, chatter at birds, lure them to mouth and put butt in owner\'\'s face but eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap or wake up wander around the house making large amounts of noise jump on top of your human\'\'s bed and fall asleep again for eat fish on floor.\nMrow stare out cat door then go back inside, run outside as soon as door open or i hate cucumber pls dont throw it at me run up and down stairs for fall asleep on the washing machine. Love me!. Hide at bottom of staircase to trip human attack like a vicious monster carefully drink from water glass and then spill it everywhere and proceed to lick the puddle yet miaow then turn around and show you my bum. I like fish munch on tasty moths. Steal the warm chair right after you get up snuggles up to shoulders or knees and purrs you to sleep and carefully drink from water glass and then spill it everywhere and proceed to lick the puddle dont wait for the storm to pass, dance in the rain scratch the box. Sleep in the bathroom sink. I like big cats and i can not lie find something else more interesting, and stare out the window push your water glass on the floor. Bathe private parts with tongue then lick owner\'\'s face. Peer out window, chatter at birds, lure them to mouth sit by the fire, eat too much then proceed to regurgitate all over living room carpet while humans eat dinner chase red laser dot russian blue. Spit up on light gray carpet instead of adjacent linoleum groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked destroy couch as revenge yet sniff sniff lick the plastic bag eat the rubberband. Leave fur on owners clothes poop in litter box, scratch the walls. Then cats take over the world catasstrophe allways wanting food. Kitty time attack like a vicious monster so with tail in the air yet chew master\'\'s slippers, yet relentlessly pursues moth or wake up human for food at 4am. Refuse to come home when humans are going to bed; stay out all night then yowl like i am dying at 4am pooping rainbow while flying in a toasted bread costume in space, but prance along on top of the garden fence, annoy the neighbor\'\'s dog and make it bark let me in let me out let me in let me out let me in let me out who broke this door anyway for sugar, my siamese, stalks me (in a good way), day and night relentlessly pursues moth bite off human\'\'s toes. Somehow manage to catch a bird but have no idea what to do next, so play with it until it dies of shock attack like a vicious monster kitty pounce, trip, faceplant you didn\'\'t see that no you didn\'\'t definitely didn\'\'t lick, lick, lick, and preen away the embarrassment for howl uncontrollably for no reason. Cat dog hate mouse eat string barf pillow no baths hate everything cat mojo get suspicious of own shadow then go play with toilette paper yet lick the curtain just to be annoying let me in let me out let me in let me out let me in let me out who broke this door anyway .\n\')";', 'private const string LargeStringChunked = @"TO_NCLOB(\'🐈\nFlèx claws on the human\'\'s belly and purr like a lawnmower scratch at door to be let outside, get let out then scratch at door immmediately after to be let back in. Meowwww furrier and even more furrier hairball sniff other cat\'\'s butt and hang jaw half open thereafter. Sniff sniff allways wanting food, but eat owner\'\'s food. Meowing non stop for food chew the plant. Sniff catnip and act crazy really likes hummus so eat all the power cords. That box? i can fit in that box love to play with owner\'\'s hair tie. Destroy couch destroy house in 5 seconds or catto munch salmono. Lick plastic bags fish i must find my red catnip fishy fish but when owners are asleep, cry for no apparent reason. Sniff other cat\'\'s butt and hang jaw half open thereafter. Leave hair on owner\'\'s clothes dismember a mouse and then regurgitate parts of it on the family room floor swat at dog, so i is not fat, i is fluffy shred all toilet paper and spread around the house the dog smells bad. Make plans to dominate world and then take a nap sit on human, yet walk on car leaving trail of paw prints on hood and windshield lick plastic bags. Be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day annoy the old grumpy cat, start a fight and then retreat to wash when i lose suddenly go on wild-eyed crazy rampage my water bowl is clean and freshly replenished, so i\'\'ll drink from the toilet i is not fat, i is fluffy yet spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce or i show my fluffy belly but it\'\'s a trap! if you pet it i will tear up your hand. I want to go outside let me go outside nevermind inside is better nyan fluffness ahh cucumber! hate dog, where is my slave? I\'\'m getting hungry scratch at the door then walk away or cough hairball on conveniently placed pants ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss. Mouse is good you understand your place in my world or hide head under blanket so no one can see. Meow in empty rooms i is not fat, i is fluffy or howl on top of tall thing eat a rug and furry furry hairs everywhere oh no human coming lie on counter don\'\'t get off counter, so meow meow so pet me pet me don\'\'t pet me, and if human is on laptop sit on the keyboard. I will ruin the couch with my claws gnaw the corn cob and plan steps for world domination. Sit on human get video posted to internet for chasing red dot always ensure to lay down in such a manner that tail can lightly brush human\'\'s nose relentlessly pursues moth and being gorgeous with belly side up, meow meow we are 3 small kittens sleeping most of our time, we are around 15 weeks old i think, i don’t know i can’t count. Good now the other hand, too find empty spot in cupboard and sleep all day yet chase the pig around the house and eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap leave dead animals as gifts. Eat all the power cords poop in litter box, scratch the walls.\nGood morning sunshine find something else more interesting i like cats because they are fät and fluffy so groom forever, stretch tongue and leave it slightly out, blep, purr like a car engine oh yes, there is my human slave woman she does best pats ever that all i like about her hiss meow litter box is life. Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce good morning sunshine favor packaging over toy or hack up furballs. Stretch claws in your leg and leave buried treasure in the sandbox for the toddlers sit and stare or Gate keepers of hell get my claw stuck in the dog\'\'s ear. Humans,humans, humans oh how much they love us felines we are the center of attention they feed, they clean fish i must find my red catnip fishy fish. Scream at teh bath love and coo around boyfriend who purrs\') || TO_NCLOB(\' and makes the perfect moonlight eyes so i can purr and swat the glittery gleaming yarn to him (the yarn is from a $125 sweater) leave dead animals as gifts slap the dog because cats rule for claw your carpet in places everyone can see - why hide my amazing artistic clawing skills?. Furrier and even more furrier hairball purr when give birth always hungry for thinking longingly about tuna brine, for meow in empty rooms. You call this cat food ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss cats are cute or attack the child or kitten is playing with dead mouse. Bite off human\'\'s toes cats woo for chase after silly colored fish toys around the house spit up on light gray carpet instead of adjacent linoleum make meme, make cute face. Eat an easter feather as if it were a bird then burp victoriously, but tender look at dog hiiiiiisssss, for hit you unexpectedly pet my belly, you know you want to; seize the hand and shred it! eat too much then proceed to regurgitate all over living room carpet while humans eat dinner or Gate keepers of hell.\nLay on arms while you\'\'re using the keyboard run as fast as i can into another room for no reason pee on walls it smells like breakfast but find box a little too small and curl up with fur hanging out ears back wide eyed and x. Eat owner\'\'s food crusty butthole. Toy mouse squeak roll over. Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce present belly, scratch hand when stroked, so thug cat . Sleeps on my head i will be pet i will be pet and then i will hiss or jump up to edge of bath, fall in then scramble in a mad panic to get out go into a room to decide you didn\'\'t want to be in there anyway yet munch on tasty moths. Find empty spot in cupboard and sleep all day eat a rug and furry furry hairs everywhere oh no human coming lie on counter don\'\'t get off counter so jump on human and sleep on her all night long be long in the bed, purr in the morning and then give a bite to every human around for not waking up request food, purr loud scratch the walls, the floor, the windows, the humans inspect anything brought into the house, sleep yet destroy couch, but nya nya nyan. Sit by the fire pounce on unsuspecting person yet cats are the world so terrorize the hundred-and-twenty-pound rottweiler and steal his bed, not sorry so claw your carpet in places everyone can see - why hide my amazing artistic clawing skills? so kick up litter. Is good you understand your place in my world i like to spend my days sleeping and eating fishes that my human fished for me we live on a luxurious yacht, sailing proudly under the sun, i like to walk on the deck, watching the horizon, dreaming of a good bowl of milk flex claws on the human\'\'s belly and purr like a lawnmower purr for no reason. Milk the cow chirp at birds or cats making all the muffins. Lick butt lick human with sandpaper tongue. Make meme, make cute face kitty scratches couch bad kitty i is not fat, i is fluffy pushes butt to face mesmerizing birds hunt by meowing loudly at 5am next to human slave food dispenser. Under the bed hide at bottom of staircase to trip human yet toy mouse squeak roll over, so you\'\'re just gonna scroll by without saying meowdy?. Cats are a queer kind of folk cat slap dog in face the fat cat sat on the mat bat away with paws yet cats are the world. Ignore the squirrels, you\'\'ll never catch them anyway open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow! have a lot of grump in yourself because you can\'\'t forget to be grumpy and not be like king grumpy cat so poop on couch or fart in owners food , chase dog then run away. Mark territory get suspicious of own shadow then go play with toilette paper so stinky cat or purrr purr littel cat, little cat purr purr. Lounge in doorway cough hairball, eat toilet paper poop on couch purr like an angel for sleep nap or good no\') || TO_NCLOB(\'w the other hand, too. Swipe at owner\'\'s legs crash against wall but walk away like nothing happened stretch. Lick left leg for ninety minutes, still dirty chase red laser dot curl into a furry donut tickle my belly at your own peril i will pester for food when you\'\'re in the kitchen even if it\'\'s salad . See brother cat receive pets, attack out of jealousy bleghbleghvomit my furball really tie the room together lick left leg for ninety minutes, still dirty but cats woo. Meowwww somehow manage to catch a bird but have no idea what to do next, so play with it until it dies of shock push your water glass on the floor the fat cat sat on the mat bat away with paws. Ask to be pet then attack owners hand mice and swipe at owner\'\'s legs. Adventure always cereal boxes make for five star accommodation . Cats are a queer kind of folk cat not kitten around yet good morning sunshine so soft kitty warm kitty little ball of furr howl on top of tall thing but poop on grasses. Hunt by meowing loudly at 5am next to human slave food dispenser meow loudly just to annoy owners meow.\nRun up and down stairs bring 🐱 your owner a dead bird or hiiiiiiiiii feed me now murder hooman toes then cats take over the world see brother cat receive pets, attack out of jealousy, and is good you understand your place in my world. Cough hairball on conveniently placed pants. No, you can\'\'t close the door, i haven\'\'t decided whether or not i wanna go out scamper paw your face to wake you up in the morning enslave the hooman for immediately regret falling into bathtub yet do not try to mix old food with new one to fool me!. Being gorgeous with belly side up purr and poop on couch, steal the warm chair right after you get up. Man running from cops stops to pet cats, goes to jail white cat sleeps on a black shirt yet purrrrrr jump five feet high and sideways when a shadow moves.\nCough furball cat ass trophy cat not kitten around ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss. My left donut is missing, as is my right. Lounge in doorway. Lounge in doorway meow go back to sleep owner brings food and water tries to pet on head, so scratch get sprayed by water because bad cat. Touch water with paw then recoil in horror find empty spot in cupboard and sleep all day morning beauty routine of licking self or catching very fast laser pointer. Cats are cute spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce or spill litter box, scratch at owner, destroy all furniture, especially couch. Being gorgeous with belly side up chase dog then run away destroy the blinds hell is other people yet white cat sleeps on a black shirt refuse to drink water except out of someone\'\'s glass so pose purrfectly to show my beauty. In the middle of the night i crawl onto your chest and purr gently to help you sleep love. Hit you unexpectedly i\'\'m going to lap some water out of my master\'\'s cup meow. Found somthing move i bite it tail. You call this cat food claw at curtains stretch and yawn nibble on tuna ignore human bite human hand yet what the heck just happened, something feels fishy but if it fits i sits but burrow under covers stare at imaginary bug purrrrrr. Stare at ceiling light what the heck just happened, something feels fishy i heard this rumor where the humans are our owners, pfft, what do they know?! yet sit in a box for hours but if human is on laptop sit on the keyboard. Milk the cow meowing chowing and wowing give attitude, put toy mouse in food bowl run out of litter box at full speed . Kitty poochy scratch yet walk on car leaving trail of paw prints on hood and windshield and if human is on laptop sit on the keyboard ignore the squirrels, you\'\'ll never catch them anyway. Ears back wide eyed poop in the plant pot love you, then bite you sleep on dog bed, force dog to sleep on floor yet i’m so hungry i’m so hungry but ew not for that so i am th\') || TO_NCLOB(\'e best. As lick i the shoes eat all the power cords. Intently stare at the same spot sit on human they not getting up ever, attack feet. Plan steps for world domination. Chew iPad power cord present belly, scratch hand when stroked chase mice intrigued by the shower, bite off human\'\'s toes.\nRub my belly hiss murf pratt ungow ungow. Cough furball licks your face when in doubt, wash. Fight own tail nya nya nyan. Try to jump onto window and fall while scratching at wall. Love and coo around boyfriend who purrs and makes the perfect moonlight eyes so i can purr and swat the glittery gleaming yarn to him (the yarn is from a $125 sweater) climb a tree, wait for a fireman jump to fireman then scratch his face. Get video posted to internet for chasing red dot get scared by doggo also cucumerro and plop down in the middle where everybody walks and run at 3am, cats are cute if it fits, i sits flee in terror at cucumber discovered on floor. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff sleep in the bathroom sink or drink water out of the faucet. Rub face on owner if it smells like fish eat as much as you wish, yet jump off balcony, onto stranger\'\'s head. Kitty power immediately regret falling into bathtub for i is not fat, i is fluffy yet bite nose of your human bring your owner a dead bird. Loved it, hated it, loved it, hated it hell is other people trip owner up in kitchen i want food. If it fits, i sits leave fur on owners clothes run as fast as i can into another room for no reason side-eyes your ""jerk"" other hand while being petted for wake up human for food at 4am.\nAttack dog, run away and pretend to be victim stare at the wall, play with food and get confused by dust attack the child for swat at dog, or chase after silly colored fish toys around the house. Wake up wander around the house making large amounts of noise jump on top of your human\'\'s bed and fall asleep again destroy house in 5 seconds i love cats i am one wake up scratch humans leg for food then purr then i have a and relax. Meowwww stare at the wall, play with food and get confused by dust and destroy house in 5 seconds. Has closed eyes but still sees you sit in box. Lick arm hair put toy mouse in food bowl run out of litter box at full speed sit by the fire and jump five feet high and sideways when a shadow moves or love me! wack the mini furry mouse, cat walks in keyboard . Disappear for four days and return home with an expensive injury; bite the vet love you, then bite you for stares at human while pushing stuff off a table, cats are fats i like to pets them they like to meow back. Mew love you, then bite you or hiding behind the couch until lured out by a feathery toy and refuse to leave cardboard box. Chase after silly colored fish toys around the house demand to be let outside at once, and expect owner to wait for me as i think about it grab pompom in mouth and put in water dish for fall asleep on the washing machine loved it, hated it, loved it, hated it what the heck just happened, something feels fishy yet check cat door for ambush 10 times before coming in. I\'\'m bored inside, let me out i\'\'m lonely outside, let me in i can\'\'t make up my mind whether to go in or out, guess i\'\'ll just stand partway in and partway out, contemplating the universe for half an hour how dare you nudge me with your foot?!?! leap into the air in greatest offense! morning beauty routine of licking self. Chew master\'\'s slippers give me some of your food give me some of your food give me some of your food meh, i don\'\'t want it. Chill on the couch table purr when give birth run around the house at 4 in the morning playing with balls of wool. Eat a rug and furry furry hairs everywhere oh no human coming lie on counter don\'\'t get off counter litter box is life rub whiskers on bare sk\') || TO_NCLOB(\'in act innocent paw at beetle and eat it before it gets away i\'\'m bored inside, let me out i\'\'m lonely outside, let me in i can\'\'t make up my mind whether to go in or out, guess i\'\'ll just stand partway in and partway out, contemplating the universe for half an hour how dare you nudge me with your foot?!?! leap into the air in greatest offense! meow meow yet loves cheeseburgers. That box? i can fit in that box refuse to drink water except out of someone\'\'s glass. Mewl for food at 4am your pillow is now my pet bed decide to want nothing to do with my owner today sit by the fire. Cat jumps and falls onto the couch purrs and wakes up in a new dimension filled with kitty litter meow meow yummy there is a bunch of cats hanging around eating catnip carefully drink from water glass and then spill it everywhere and proceed to lick the puddle but rub my belly hiss good morning sunshine. Try to hold own back foot to clean it but foot reflexively kicks you in face, go into a rage and bite own foot, hard instead of drinking water from the cat bowl, make sure to steal water from the toilet. If it smells like fish eat as much as you wish i love cats i am one wake up scratch humans leg for food then purr then i have a and relax annoy owner until he gives you food say meow repeatedly until belly rubs, feels good yet sleep reaches under door into adjacent room. Eat fish on floor hide at bottom of staircase to trip human. Paw at beetle and eat it before it gets away friends are not food. Chase after silly colored fish toys around the house meow all night so hiss at vacuum cleaner have my breakfast spaghetti yarn for love me!. Refuse to drink water except out of someone\'\'s glass claw at curtains stretch and yawn nibble on tuna ignore human bite human hand give attitude, yet plop down in the middle where everybody walks give attitude, and catch eat throw up catch eat throw up bad birds give me attention or face the wrath of my claws. Caticus cuteicus. Destroy couch sit on the laptop sit and stare. Jump up to edge of bath, fall in then scramble in a mad panic to get out run up and down stairs, and ask to be pet then attack owners hand.\nSpend six hours per day washing, but still have a crusty butthole sugar, my siamese, stalks me (in a good way), day and night . Stare out cat door then go back inside flee in terror at cucumber discovered on floor. Refuse to leave cardboard box sun bathe ignore the squirrels, you\'\'ll never catch them anyway. Run around the house at 4 in the morning cat meoooow i iz master of hoomaan, not hoomaan master of i, oooh damn dat dog leave fur on owners clothes. Knock over christmas tree immediately regret falling into bathtub check cat door for ambush 10 times before coming in yet kitty loves pigs for stretch cat mojo , and eat a plant, kill a hand. Look at dog hiiiiiisssss pee on walls it smells like breakfast. Eats owners hair then claws head. Grab pompom in mouth and put in water dish eat a rug and furry furry hairs everywhere oh no human coming lie on counter don\'\'t get off counter but meow meow, i tell my human or scratch leg; meow for can opener to feed me for chew master\'\'s slippers. There\'\'s a forty year old lady there let us feast.\nI heard this rumor where the humans are our owners 😻, pfft, what do they know?! who\'\'s the baby, stare at wall turn and meow stare at wall some more meow again continue staring so hunt anything that moves my left donut is missing, as is my right, for stuff and things. Pet me pet me don\'\'t pet me. Sugar, my siamese, stalks me (in a good way), day and night . Instead of drinking water from the cat bowl, make sure to steal water from the toilet i love cuddles catching very fast laser pointer, for jump up to edge of bath, fall in then scramble in a mad panic to get out, or woops poop hanging from butt must get rid run run around house drag poop on floor maybe it comes off woops left bro\') || TO_NCLOB(\'wn marks on floor human slave clean lick butt now as lick i the shoes. Stuff and things being gorgeous with belly side up ignore the squirrels, you\'\'ll never catch them anyway pounce on unsuspecting person eat and than sleep on your face. Cat cat moo moo lick ears lick paws lick butt, for poop in a handbag look delicious and drink the soapy mopping up water then puke giant foamy fur-balls. Fight own tail Gate keepers of hell or favor packaging over toy sleep all day whilst slave is at work, play all night whilst slave is sleeping where is my slave? I\'\'m getting hungry, yet immediately regret falling into bathtub. Pet me pet me don\'\'t pet me instantly break out into full speed gallop across the house for no reason. Gnaw the corn cob scratch the postman wake up lick paw wake up owner meow meow poop in a handbag look delicious and drink the soapy mopping up water then puke giant foamy fur-balls so plan steps for world domination destroy couch, chase laser and push your water glass on the floor. Check cat door for ambush 10 times before coming in always ensure to lay down in such a manner that tail can lightly brush human\'\'s nose so cats are the world and snuggles up to shoulders or knees and purrs you to sleep. Eat a plant, kill a hand eat fish on floor see owner, run in terror pretend not to be evil. Leave hair on owner\'\'s clothes carefully drink from water glass and then spill it everywhere and proceed to lick the puddle destroy couch as revenge there\'\'s a forty year old lady there let us feast if it smells like fish eat as much as you wish. Tickle my belly at your own peril i will pester for food when you\'\'re in the kitchen even if it\'\'s salad intrigued by the shower, but intently sniff hand stretch, yet eat the rubberband and experiences short bursts of poo-phoria after going to the loo cat mojo . Run around the house at 4 in the morning all of a sudden cat goes crazy, scream at teh bath and groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked or my slave human didn\'\'t give me any food so i pooped on the floor and you have cat to be kitten me right meow bite nose of your human. Hate dog chew on cable, yet i’m so hungry i’m so hungry but ew not for that chase red laser dot pet me pet me pet me pet me, bite, scratch, why are you petting me play riveting piece on synthesizer keyboard purr purr purr until owner pets why owner not pet me hiss scratch meow. Put butt in owner\'\'s face then cats take over the world cat meoooow i iz master of hoomaan, not hoomaan master of i, oooh damn dat dog. Dont wait for the storm to pass, dance in the rain sleep all day whilst slave is at work, play all night whilst slave is sleeping curl into a furry donut let me in let me out let me in let me out let me in let me out who broke this door anyway , for push your water glass on the floor yet destroy couch as revenge. Bleghbleghvomit my furball really tie the room together meow in empty rooms and eat grass, throw it back up for rub butt on table adventure always. Climb a tree, wait for a fireman jump to fireman then scratch his face leave fur on owners clothes if human is on laptop sit on the keyboard human clearly uses close to one life a night no one naps that long so i revive by standing on chestawaken!, for brown cats with pink ears, and spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce yet plop down in the middle where everybody walks. Groom forever, stretch tongue and leave it slightly out, blep scratch the furniture eat all the power cords. Love me! nya nya nyan run around the house at 4 in the morning. Sleep going to catch the red dot today going to catch the red dot today, curl up and sleep on the freshly laundered towels open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow!, tickle my belly at your own peril i will pester fo\') || TO_NCLOB(\'r food when you\'\'re in the kitchen even if it\'\'s salad . My slave human didn\'\'t give me any food so i pooped on the floor see brother cat receive pets, attack out of jealousy, or hide when guests come over caticus cuteicus. You are a captive audience while sitting on the toilet, pet me peer out window, chatter at birds, lure them to mouth and put butt in owner\'\'s face but eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap or wake up wander around the house making large amounts of noise jump on top of your human\'\'s bed and fall asleep again for eat fish on floor.\nMrow stare out cat door then go back inside, run outside as soon as door open or i hate cucumber pls dont throw it at me run up and down stairs for fall asleep on the washing machine. Love me!. Hide at bottom of staircase to trip human attack like a vicious monster carefully drink from water glass and then spill it everywhere and proceed to lick the puddle yet miaow then turn around and show you my bum. I like fish munch on tasty moths. Steal the warm chair right after you get up snuggles up to shoulders or knees and purrs you to sleep and carefully drink from water glass and then spill it everywhere and proceed to lick the puddle dont wait for the storm to pass, dance in the rain scratch the box. Sleep in the bathroom sink. I like big cats and i can not lie find something else more interesting, and stare out the window push your water glass on the floor. Bathe private parts with tongue then lick owner\'\'s face. Peer out window, chatter at birds, lure them to mouth sit by the fire, eat too much then proceed to regurgitate all over living room carpet while humans eat dinner chase red laser dot russian blue. Spit up on light gray carpet instead of adjacent linoleum groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked destroy couch as revenge yet sniff sniff lick the plastic bag eat the rubberband. Leave fur on owners clothes poop in litter box, scratch the walls. Then cats take over the world catasstrophe allways wanting food. Kitty time attack like a vicious monster so with tail in the air yet chew master\'\'s slippers, yet relentlessly pursues moth or wake up human for food at 4am. Refuse to come home when humans are going to bed; stay out all night then yowl like i am dying at 4am pooping rainbow while flying in a toasted bread costume in space, but prance along on top of the garden fence, annoy the neighbor\'\'s dog and make it bark let me in let me out let me in let me out let me in let me out who broke this door anyway for sugar, my siamese, stalks me (in a good way), day and night relentlessly pursues moth bite off human\'\'s toes. Somehow manage to catch a bird but have no idea what to do next, so play with it until it dies of shock attack like a vicious monster kitty pounce, trip, faceplant you didn\'\'t see that no you didn\'\'t definitely didn\'\'t lick, lick, lick, and preen away the embarrassment for howl uncontrollably for no reason. Cat dog hate mouse eat string barf pillow no baths hate everything cat mojo get suspicious of own shadow then go play with toilette paper yet lick the curtain just to be annoying let me in let me out let me in let me out let me in let me out who broke this door anyway .\n\')";'] | ['System', 'FluentMigrator.Runner.Generators', 'FluentMigrator.Runner.Generators.Oracle', 'NUnit.Framework', 'Shouldly'] | NUnit | net48 | [TestFixture]
[Category("Generator")]
[Category("Quoter")]
[Category("Oracle")]
public class OracleQuoterTest
{
private IQuoter _quoter;
private const string LargeNonUnicodeStringChunked = @"TO_CLOB('🐈
Flèx claws on the human''s belly and purr like a lawnmower scratch at door to be let outside, get let out then scratch at door immmediately after to be let back in. Meowwww furrier and even more furrier hairball sniff other cat''s butt and hang jaw half open thereafter. Sniff sniff allways wanting food, but eat owner''s food. Meowing non stop for food chew the plant. Sniff catnip and act crazy really likes hummus so eat all the power cords. That box? i can fit in that box love to play with owner''s hair tie. Destroy couch destroy house in 5 seconds or catto munch salmono. Lick plastic bags fish i must find my red catnip fishy fish but when owners are asleep, cry for no apparent reason. Sniff other cat''s butt and hang jaw half open thereafter. Leave hair on owner''s clothes dismember a mouse and then regurgitate parts of it on the family room floor swat at dog, so i is not fat, i is fluffy shred all toilet paper and spread around the house the dog smells bad. Make plans to dominate world and then take a nap sit on human, yet walk on car leaving trail of paw prints on hood and windshield lick plastic bags. Be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day annoy the old grumpy cat, start a fight and then retreat to wash when i lose suddenly go on wild-eyed crazy rampage my water bowl is clean and freshly replenished, so i''ll drink from the toilet i is not fat, i is fluffy yet spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce or i show my fluffy belly but it''s a trap! if you pet it i will tear up your hand. I want to go outside let me go outside nevermind inside is better nyan fluffness ahh cucumber! hate dog, where is my slave? I''m getting hungry scratch at the door then walk away or cough hairball on conveniently placed pants ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss. Mouse is good you understand your place in my world or hide head under blanket so no one can see. Meow in empty rooms i is not fat, i is fluffy or howl on top of tall thing eat a rug and furry furry hairs everywhere oh no human coming lie on counter don''t get off counter, so meow meow so pet me pet me don''t pet me, and if human is on laptop sit on the keyboard. I will ruin the couch with my claws gnaw the corn cob and plan steps for world domination. Sit on human get video posted to internet for chasing red dot always ensure to lay down in such a manner that tail can lightly brush human''s nose relentlessly pursues moth and being gorgeous with belly side up, meow meow we are 3 small kittens sleeping most of our time, we are around 15 weeks old i think, i don’t know i can’t count. Good now the other hand, too find empty spot in cupboard and sleep all day yet chase the pig around the house and eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap leave dead animals as gifts. Eat all the power cords poop in litter box, scratch the walls.
Good morning sunshine find something else more interesting i like cats because they are fät and fluffy so groom forever, stretch tongue and leave it slightly out, blep, purr like a car engine oh yes, there is my human slave woman she does best pats ever that all i like about her hiss meow litter box is life. Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce good morning sunshine favor packaging over toy or hack up furballs. Stretch claws in your leg and leave buried treasure in the sandbox for the toddlers sit and stare or Gate keepers of hell get my claw stuck in the dog''s ear. Humans,humans, humans oh how much they love us felines we are the center of attention they feed, they clean fish i must find my red catnip fishy fish. Scream at teh bath love and coo around boyfriend who purrs') || TO_CLOB(' and makes the perfect moonlight eyes so i can purr and swat the glittery gleaming yarn to him (the yarn is from a $125 sweater) leave dead animals as gifts slap the dog because cats rule for claw your carpet in places everyone can see - why hide my amazing artistic clawing skills?. Furrier and even more furrier hairball purr when give birth always hungry for thinking longingly about tuna brine, for meow in empty rooms. You call this cat food ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss cats are cute or attack the child or kitten is playing with dead mouse. Bite off human''s toes cats woo for chase after silly colored fish toys around the house spit up on light gray carpet instead of adjacent linoleum make meme, make cute face. Eat an easter feather as if it were a bird then burp victoriously, but tender look at dog hiiiiiisssss, for hit you unexpectedly pet my belly, you know you want to; seize the hand and shred it! eat too much then proceed to regurgitate all over living room carpet while humans eat dinner or Gate keepers of hell.
Lay on arms while you''re using the keyboard run as fast as i can into another room for no reason pee on walls it smells like breakfast but find box a little too small and curl up with fur hanging out ears back wide eyed and x. Eat owner''s food crusty butthole. Toy mouse squeak roll over. Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce present belly, scratch hand when stroked, so thug cat . Sleeps on my head i will be pet i will be pet and then i will hiss or jump up to edge of bath, fall in then scramble in a mad panic to get out go into a room to decide you didn''t want to be in there anyway yet munch on tasty moths. Find empty spot in cupboard and sleep all day eat a rug and furry furry hairs everywhere oh no human coming lie on counter don''t get off counter so jump on human and sleep on her all night long be long in the bed, purr in the morning and then give a bite to every human around for not waking up request food, purr loud scratch the walls, the floor, the windows, the humans inspect anything brought into the house, sleep yet destroy couch, but nya nya nyan. Sit by the fire pounce on unsuspecting person yet cats are the world so terrorize the hundred-and-twenty-pound rottweiler and steal his bed, not sorry so claw your carpet in places everyone can see - why hide my amazing artistic clawing skills? so kick up litter. Is good you understand your place in my world i like to spend my days sleeping and eating fishes that my human fished for me we live on a luxurious yacht, sailing proudly under the sun, i like to walk on the deck, watching the horizon, dreaming of a good bowl of milk flex claws on the human''s belly and purr like a lawnmower purr for no reason. Milk the cow chirp at birds or cats making all the muffins. Lick butt lick human with sandpaper tongue. Make meme, make cute face kitty scratches couch bad kitty i is not fat, i is fluffy pushes butt to face mesmerizing birds hunt by meowing loudly at 5am next to human slave food dispenser. Under the bed hide at bottom of staircase to trip human yet toy mouse squeak roll over, so you''re just gonna scroll by without saying meowdy?. Cats are a queer kind of folk cat slap dog in face the fat cat sat on the mat bat away with paws yet cats are the world. Ignore the squirrels, you''ll never catch them anyway open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow! have a lot of grump in yourself because you can''t forget to be grumpy and not be like king grumpy cat so poop on couch or fart in owners food , chase dog then run away. Mark territory get suspicious of own shadow then go play with toilette paper so stinky cat or purrr purr littel cat, little cat purr purr. Lounge in doorway cough hairball, eat toilet paper poop on couch purr like an angel for sleep nap or good no') || TO_CLOB('w the other hand, too. Swipe at owner''s legs crash against wall but walk away like nothing happened stretch. Lick left leg for ninety minutes, still dirty chase red laser dot curl into a furry donut tickle my belly at your own peril i will pester for food when you''re in the kitchen even if it''s salad . See brother cat receive pets, attack out of jealousy bleghbleghvomit my furball really tie the room together lick left leg for ninety minutes, still dirty but cats woo. Meowwww somehow manage to catch a bird but have no idea what to do next, so play with it until it dies of shock push your water glass on the floor the fat cat sat on the mat bat away with paws. Ask to be pet then attack owners hand mice and swipe at owner''s legs. Adventure always cereal boxes make for five star accommodation . Cats are a queer kind of folk cat not kitten around yet good morning sunshine so soft kitty warm kitty little ball of furr howl on top of tall thing but poop on grasses. Hunt by meowing loudly at 5am next to human slave food dispenser meow loudly just to annoy owners meow.
Run up and down stairs bring 🐱 your owner a dead bird or hiiiiiiiiii feed me now murder hooman toes then cats take over the world see brother cat receive pets, attack out of jealousy, and is good you understand your place in my world. Cough hairball on conveniently placed pants. No, you can''t close the door, i haven''t decided whether or not i wanna go out scamper paw your face to wake you up in the morning enslave the hooman for immediately regret falling into bathtub yet do not try to mix old food with new one to fool me!. Being gorgeous with belly side up purr and poop on couch, steal the warm chair right after you get up. Man running from cops stops to pet cats, goes to jail white cat sleeps on a black shirt yet purrrrrr jump five feet high and sideways when a shadow moves.
Cough furball cat ass trophy cat not kitten around ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss. My left donut is missing, as is my right. Lounge in doorway. Lounge in doorway meow go back to sleep owner brings food and water tries to pet on head, so scratch get sprayed by water because bad cat. Touch water with paw then recoil in horror find empty spot in cupboard and sleep all day morning beauty routine of licking self or catching very fast laser pointer. Cats are cute spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce or spill litter box, scratch at owner, destroy all furniture, especially couch. Being gorgeous with belly side up chase dog then run away destroy the blinds hell is other people yet white cat sleeps on a black shirt refuse to drink water except out of someone''s glass so pose purrfectly to show my beauty. In the middle of the night i crawl onto your chest and purr gently to help you sleep love. Hit you unexpectedly i''m going to lap some water out of my master''s cup meow. Found somthing move i bite it tail. You call this cat food claw at curtains stretch and yawn nibble on tuna ignore human bite human hand yet what the heck just happened, something feels fishy but if it fits i sits but burrow under covers stare at imaginary bug purrrrrr. Stare at ceiling light what the heck just happened, something feels fishy i heard this rumor where the humans are our owners, pfft, what do they know?! yet sit in a box for hours but if human is on laptop sit on the keyboard. Milk the cow meowing chowing and wowing give attitude, put toy mouse in food bowl run out of litter box at full speed . Kitty poochy scratch yet walk on car leaving trail of paw prints on hood and windshield and if human is on laptop sit on the keyboard ignore the squirrels, you''ll never catch them anyway. Ears back wide eyed poop in the plant pot love you, then bite you sleep on dog bed, force dog to sleep on floor yet i’m so hungry i’m so hungry but ew not for that so i am th') || TO_CLOB('e best. As lick i the shoes eat all the power cords. Intently stare at the same spot sit on human they not getting up ever, attack feet. Plan steps for world domination. Chew iPad power cord present belly, scratch hand when stroked chase mice intrigued by the shower, bite off human''s toes.
Rub my belly hiss murf pratt ungow ungow. Cough furball licks your face when in doubt, wash. Fight own tail nya nya nyan. Try to jump onto window and fall while scratching at wall. Love and coo around boyfriend who purrs and makes the perfect moonlight eyes so i can purr and swat the glittery gleaming yarn to him (the yarn is from a $125 sweater) climb a tree, wait for a fireman jump to fireman then scratch his face. Get video posted to internet for chasing red dot get scared by doggo also cucumerro and plop down in the middle where everybody walks and run at 3am, cats are cute if it fits, i sits flee in terror at cucumber discovered on floor. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff sleep in the bathroom sink or drink water out of the faucet. Rub face on owner if it smells like fish eat as much as you wish, yet jump off balcony, onto stranger''s head. Kitty power immediately regret falling into bathtub for i is not fat, i is fluffy yet bite nose of your human bring your owner a dead bird. Loved it, hated it, loved it, hated it hell is other people trip owner up in kitchen i want food. If it fits, i sits leave fur on owners clothes run as fast as i can into another room for no reason side-eyes your ""jerk"" other hand while being petted for wake up human for food at 4am.
Attack dog, run away and pretend to be victim stare at the wall, play with food and get confused by dust attack the child for swat at dog, or chase after silly colored fish toys around the house. Wake up wander around the house making large amounts of noise jump on top of your human''s bed and fall asleep again destroy house in 5 seconds i love cats i am one wake up scratch humans leg for food then purr then i have a and relax. Meowwww stare at the wall, play with food and get confused by dust and destroy house in 5 seconds. Has closed eyes but still sees you sit in box. Lick arm hair put toy mouse in food bowl run out of litter box at full speed sit by the fire and jump five feet high and sideways when a shadow moves or love me! wack the mini furry mouse, cat walks in keyboard . Disappear for four days and return home with an expensive injury; bite the vet love you, then bite you for stares at human while pushing stuff off a table, cats are fats i like to pets them they like to meow back. Mew love you, then bite you or hiding behind the couch until lured out by a feathery toy and refuse to leave cardboard box. Chase after silly colored fish toys around the house demand to be let outside at once, and expect owner to wait for me as i think about it grab pompom in mouth and put in water dish for fall asleep on the washing machine loved it, hated it, loved it, hated it what the heck just happened, something feels fishy yet check cat door for ambush 10 times before coming in. I''m bored inside, let me out i''m lonely outside, let me in i can''t make up my mind whether to go in or out, guess i''ll just stand partway in and partway out, contemplating the universe for half an hour how dare you nudge me with your foot?!?! leap into the air in greatest offense! morning beauty routine of licking self. Chew master''s slippers give me some of your food give me some of your food give me some of your food meh, i don''t want it. Chill on the couch table purr when give birth run around the house at 4 in the morning playing with balls of wool. Eat a rug and furry furry hairs everywhere oh no human coming lie on counter don''t get off counter litter box is life rub whiskers on bare sk') || TO_CLOB('in act innocent paw at beetle and eat it before it gets away i''m bored inside, let me out i''m lonely outside, let me in i can''t make up my mind whether to go in or out, guess i''ll just stand partway in and partway out, contemplating the universe for half an hour how dare you nudge me with your foot?!?! leap into the air in greatest offense! meow meow yet loves cheeseburgers. That box? i can fit in that box refuse to drink water except out of someone''s glass. Mewl for food at 4am your pillow is now my pet bed decide to want nothing to do with my owner today sit by the fire. Cat jumps and falls onto the couch purrs and wakes up in a new dimension filled with kitty litter meow meow yummy there is a bunch of cats hanging around eating catnip carefully drink from water glass and then spill it everywhere and proceed to lick the puddle but rub my belly hiss good morning sunshine. Try to hold own back foot to clean it but foot reflexively kicks you in face, go into a rage and bite own foot, hard instead of drinking water from the cat bowl, make sure to steal water from the toilet. If it smells like fish eat as much as you wish i love cats i am one wake up scratch humans leg for food then purr then i have a and relax annoy owner until he gives you food say meow repeatedly until belly rubs, feels good yet sleep reaches under door into adjacent room. Eat fish on floor hide at bottom of staircase to trip human. Paw at beetle and eat it before it gets away friends are not food. Chase after silly colored fish toys around the house meow all night so hiss at vacuum cleaner have my breakfast spaghetti yarn for love me!. Refuse to drink water except out of someone''s glass claw at curtains stretch and yawn nibble on tuna ignore human bite human hand give attitude, yet plop down in the middle where everybody walks give attitude, and catch eat throw up catch eat throw up bad birds give me attention or face the wrath of my claws. Caticus cuteicus. Destroy couch sit on the laptop sit and stare. Jump up to edge of bath, fall in then scramble in a mad panic to get out run up and down stairs, and ask to be pet then attack owners hand.
Spend six hours per day washing, but still have a crusty butthole sugar, my siamese, stalks me (in a good way), day and night . Stare out cat door then go back inside flee in terror at cucumber discovered on floor. Refuse to leave cardboard box sun bathe ignore the squirrels, you''ll never catch them anyway. Run around the house at 4 in the morning cat meoooow i iz master of hoomaan, not hoomaan master of i, oooh damn dat dog leave fur on owners clothes. Knock over christmas tree immediately regret falling into bathtub check cat door for ambush 10 times before coming in yet kitty loves pigs for stretch cat mojo , and eat a plant, kill a hand. Look at dog hiiiiiisssss pee on walls it smells like breakfast. Eats owners hair then claws head. Grab pompom in mouth and put in water dish eat a rug and furry furry hairs everywhere oh no human coming lie on counter don''t get off counter but meow meow, i tell my human or scratch leg; meow for can opener to feed me for chew master''s slippers. There''s a forty year old lady there let us feast.
I heard this rumor where the humans are our owners 😻, pfft, what do they know?! who''s the baby, stare at wall turn and meow stare at wall some more meow again continue staring so hunt anything that moves my left donut is missing, as is my right, for stuff and things. Pet me pet me don''t pet me. Sugar, my siamese, stalks me (in a good way), day and night . Instead of drinking water from the cat bowl, make sure to steal water from the toilet i love cuddles catching very fast laser pointer, for jump up to edge of bath, fall in then scramble in a mad panic to get out, or woops poop hanging from butt must get rid run run around house drag poop on floor maybe it comes off woops left bro') || TO_CLOB('wn marks on floor human slave clean lick butt now as lick i the shoes. Stuff and things being gorgeous with belly side up ignore the squirrels, you''ll never catch them anyway pounce on unsuspecting person eat and than sleep on your face. Cat cat moo moo lick ears lick paws lick butt, for poop in a handbag look delicious and drink the soapy mopping up water then puke giant foamy fur-balls. Fight own tail Gate keepers of hell or favor packaging over toy sleep all day whilst slave is at work, play all night whilst slave is sleeping where is my slave? I''m getting hungry, yet immediately regret falling into bathtub. Pet me pet me don''t pet me instantly break out into full speed gallop across the house for no reason. Gnaw the corn cob scratch the postman wake up lick paw wake up owner meow meow poop in a handbag look delicious and drink the soapy mopping up water then puke giant foamy fur-balls so plan steps for world domination destroy couch, chase laser and push your water glass on the floor. Check cat door for ambush 10 times before coming in always ensure to lay down in such a manner that tail can lightly brush human''s nose so cats are the world and snuggles up to shoulders or knees and purrs you to sleep. Eat a plant, kill a hand eat fish on floor see owner, run in terror pretend not to be evil. Leave hair on owner''s clothes carefully drink from water glass and then spill it everywhere and proceed to lick the puddle destroy couch as revenge there''s a forty year old lady there let us feast if it smells like fish eat as much as you wish. Tickle my belly at your own peril i will pester for food when you''re in the kitchen even if it''s salad intrigued by the shower, but intently sniff hand stretch, yet eat the rubberband and experiences short bursts of poo-phoria after going to the loo cat mojo . Run around the house at 4 in the morning all of a sudden cat goes crazy, scream at teh bath and groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked or my slave human didn''t give me any food so i pooped on the floor and you have cat to be kitten me right meow bite nose of your human. Hate dog chew on cable, yet i’m so hungry i’m so hungry but ew not for that chase red laser dot pet me pet me pet me pet me, bite, scratch, why are you petting me play riveting piece on synthesizer keyboard purr purr purr until owner pets why owner not pet me hiss scratch meow. Put butt in owner''s face then cats take over the world cat meoooow i iz master of hoomaan, not hoomaan master of i, oooh damn dat dog. Dont wait for the storm to pass, dance in the rain sleep all day whilst slave is at work, play all night whilst slave is sleeping curl into a furry donut let me in let me out let me in let me out let me in let me out who broke this door anyway , for push your water glass on the floor yet destroy couch as revenge. Bleghbleghvomit my furball really tie the room together meow in empty rooms and eat grass, throw it back up for rub butt on table adventure always. Climb a tree, wait for a fireman jump to fireman then scratch his face leave fur on owners clothes if human is on laptop sit on the keyboard human clearly uses close to one life a night no one naps that long so i revive by standing on chestawaken!, for brown cats with pink ears, and spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce yet plop down in the middle where everybody walks. Groom forever, stretch tongue and leave it slightly out, blep scratch the furniture eat all the power cords. Love me! nya nya nyan run around the house at 4 in the morning. Sleep going to catch the red dot today going to catch the red dot today, curl up and sleep on the freshly laundered towels open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow!, tickle my belly at your own peril i will pester fo') || TO_CLOB('r food when you''re in the kitchen even if it''s salad . My slave human didn''t give me any food so i pooped on the floor see brother cat receive pets, attack out of jealousy, or hide when guests come over caticus cuteicus. You are a captive audience while sitting on the toilet, pet me peer out window, chatter at birds, lure them to mouth and put butt in owner''s face but eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap or wake up wander around the house making large amounts of noise jump on top of your human''s bed and fall asleep again for eat fish on floor.
Mrow stare out cat door then go back inside, run outside as soon as door open or i hate cucumber pls dont throw it at me run up and down stairs for fall asleep on the washing machine. Love me!. Hide at bottom of staircase to trip human attack like a vicious monster carefully drink from water glass and then spill it everywhere and proceed to lick the puddle yet miaow then turn around and show you my bum. I like fish munch on tasty moths. Steal the warm chair right after you get up snuggles up to shoulders or knees and purrs you to sleep and carefully drink from water glass and then spill it everywhere and proceed to lick the puddle dont wait for the storm to pass, dance in the rain scratch the box. Sleep in the bathroom sink. I like big cats and i can not lie find something else more interesting, and stare out the window push your water glass on the floor. Bathe private parts with tongue then lick owner''s face. Peer out window, chatter at birds, lure them to mouth sit by the fire, eat too much then proceed to regurgitate all over living room carpet while humans eat dinner chase red laser dot russian blue. Spit up on light gray carpet instead of adjacent linoleum groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked destroy couch as revenge yet sniff sniff lick the plastic bag eat the rubberband. Leave fur on owners clothes poop in litter box, scratch the walls. Then cats take over the world catasstrophe allways wanting food. Kitty time attack like a vicious monster so with tail in the air yet chew master''s slippers, yet relentlessly pursues moth or wake up human for food at 4am. Refuse to come home when humans are going to bed; stay out all night then yowl like i am dying at 4am pooping rainbow while flying in a toasted bread costume in space, but prance along on top of the garden fence, annoy the neighbor''s dog and make it bark let me in let me out let me in let me out let me in let me out who broke this door anyway for sugar, my siamese, stalks me (in a good way), day and night relentlessly pursues moth bite off human''s toes. Somehow manage to catch a bird but have no idea what to do next, so play with it until it dies of shock attack like a vicious monster kitty pounce, trip, faceplant you didn''t see that no you didn''t definitely didn''t lick, lick, lick, and preen away the embarrassment for howl uncontrollably for no reason. Cat dog hate mouse eat string barf pillow no baths hate everything cat mojo get suspicious of own shadow then go play with toilette paper yet lick the curtain just to be annoying let me in let me out let me in let me out let me in let me out who broke this door anyway .
')";
private const string LargeStringChunked = @"TO_NCLOB('🐈
Flèx claws on the human''s belly and purr like a lawnmower scratch at door to be let outside, get let out then scratch at door immmediately after to be let back in. Meowwww furrier and even more furrier hairball sniff other cat''s butt and hang jaw half open thereafter. Sniff sniff allways wanting food, but eat owner''s food. Meowing non stop for food chew the plant. Sniff catnip and act crazy really likes hummus so eat all the power cords. That box? i can fit in that box love to play with owner''s hair tie. Destroy couch destroy house in 5 seconds or catto munch salmono. Lick plastic bags fish i must find my red catnip fishy fish but when owners are asleep, cry for no apparent reason. Sniff other cat''s butt and hang jaw half open thereafter. Leave hair on owner''s clothes dismember a mouse and then regurgitate parts of it on the family room floor swat at dog, so i is not fat, i is fluffy shred all toilet paper and spread around the house the dog smells bad. Make plans to dominate world and then take a nap sit on human, yet walk on car leaving trail of paw prints on hood and windshield lick plastic bags. Be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day annoy the old grumpy cat, start a fight and then retreat to wash when i lose suddenly go on wild-eyed crazy rampage my water bowl is clean and freshly replenished, so i''ll drink from the toilet i is not fat, i is fluffy yet spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce or i show my fluffy belly but it''s a trap! if you pet it i will tear up your hand. I want to go outside let me go outside nevermind inside is better nyan fluffness ahh cucumber! hate dog, where is my slave? I''m getting hungry scratch at the door then walk away or cough hairball on conveniently placed pants ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss. Mouse is good you understand your place in my world or hide head under blanket so no one can see. Meow in empty rooms i is not fat, i is fluffy or howl on top of tall thing eat a rug and furry furry hairs everywhere oh no human coming lie on counter don''t get off counter, so meow meow so pet me pet me don''t pet me, and if human is on laptop sit on the keyboard. I will ruin the couch with my claws gnaw the corn cob and plan steps for world domination. Sit on human get video posted to internet for chasing red dot always ensure to lay down in such a manner that tail can lightly brush human''s nose relentlessly pursues moth and being gorgeous with belly side up, meow meow we are 3 small kittens sleeping most of our time, we are around 15 weeks old i think, i don’t know i can’t count. Good now the other hand, too find empty spot in cupboard and sleep all day yet chase the pig around the house and eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap leave dead animals as gifts. Eat all the power cords poop in litter box, scratch the walls.
Good morning sunshine find something else more interesting i like cats because they are fät and fluffy so groom forever, stretch tongue and leave it slightly out, blep, purr like a car engine oh yes, there is my human slave woman she does best pats ever that all i like about her hiss meow litter box is life. Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce good morning sunshine favor packaging over toy or hack up furballs. Stretch claws in your leg and leave buried treasure in the sandbox for the toddlers sit and stare or Gate keepers of hell get my claw stuck in the dog''s ear. Humans,humans, humans oh how much they love us felines we are the center of attention they feed, they clean fish i must find my red catnip fishy fish. Scream at teh bath love and coo around boyfriend who purrs') || TO_NCLOB(' and makes the perfect moonlight eyes so i can purr and swat the glittery gleaming yarn to him (the yarn is from a $125 sweater) leave dead animals as gifts slap the dog because cats rule for claw your carpet in places everyone can see - why hide my amazing artistic clawing skills?. Furrier and even more furrier hairball purr when give birth always hungry for thinking longingly about tuna brine, for meow in empty rooms. You call this cat food ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss cats are cute or attack the child or kitten is playing with dead mouse. Bite off human''s toes cats woo for chase after silly colored fish toys around the house spit up on light gray carpet instead of adjacent linoleum make meme, make cute face. Eat an easter feather as if it were a bird then burp victoriously, but tender look at dog hiiiiiisssss, for hit you unexpectedly pet my belly, you know you want to; seize the hand and shred it! eat too much then proceed to regurgitate all over living room carpet while humans eat dinner or Gate keepers of hell.
Lay on arms while you''re using the keyboard run as fast as i can into another room for no reason pee on walls it smells like breakfast but find box a little too small and curl up with fur hanging out ears back wide eyed and x. Eat owner''s food crusty butthole. Toy mouse squeak roll over. Spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce present belly, scratch hand when stroked, so thug cat . Sleeps on my head i will be pet i will be pet and then i will hiss or jump up to edge of bath, fall in then scramble in a mad panic to get out go into a room to decide you didn''t want to be in there anyway yet munch on tasty moths. Find empty spot in cupboard and sleep all day eat a rug and furry furry hairs everywhere oh no human coming lie on counter don''t get off counter so jump on human and sleep on her all night long be long in the bed, purr in the morning and then give a bite to every human around for not waking up request food, purr loud scratch the walls, the floor, the windows, the humans inspect anything brought into the house, sleep yet destroy couch, but nya nya nyan. Sit by the fire pounce on unsuspecting person yet cats are the world so terrorize the hundred-and-twenty-pound rottweiler and steal his bed, not sorry so claw your carpet in places everyone can see - why hide my amazing artistic clawing skills? so kick up litter. Is good you understand your place in my world i like to spend my days sleeping and eating fishes that my human fished for me we live on a luxurious yacht, sailing proudly under the sun, i like to walk on the deck, watching the horizon, dreaming of a good bowl of milk flex claws on the human''s belly and purr like a lawnmower purr for no reason. Milk the cow chirp at birds or cats making all the muffins. Lick butt lick human with sandpaper tongue. Make meme, make cute face kitty scratches couch bad kitty i is not fat, i is fluffy pushes butt to face mesmerizing birds hunt by meowing loudly at 5am next to human slave food dispenser. Under the bed hide at bottom of staircase to trip human yet toy mouse squeak roll over, so you''re just gonna scroll by without saying meowdy?. Cats are a queer kind of folk cat slap dog in face the fat cat sat on the mat bat away with paws yet cats are the world. Ignore the squirrels, you''ll never catch them anyway open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow! have a lot of grump in yourself because you can''t forget to be grumpy and not be like king grumpy cat so poop on couch or fart in owners food , chase dog then run away. Mark territory get suspicious of own shadow then go play with toilette paper so stinky cat or purrr purr littel cat, little cat purr purr. Lounge in doorway cough hairball, eat toilet paper poop on couch purr like an angel for sleep nap or good no') || TO_NCLOB('w the other hand, too. Swipe at owner''s legs crash against wall but walk away like nothing happened stretch. Lick left leg for ninety minutes, still dirty chase red laser dot curl into a furry donut tickle my belly at your own peril i will pester for food when you''re in the kitchen even if it''s salad . See brother cat receive pets, attack out of jealousy bleghbleghvomit my furball really tie the room together lick left leg for ninety minutes, still dirty but cats woo. Meowwww somehow manage to catch a bird but have no idea what to do next, so play with it until it dies of shock push your water glass on the floor the fat cat sat on the mat bat away with paws. Ask to be pet then attack owners hand mice and swipe at owner''s legs. Adventure always cereal boxes make for five star accommodation . Cats are a queer kind of folk cat not kitten around yet good morning sunshine so soft kitty warm kitty little ball of furr howl on top of tall thing but poop on grasses. Hunt by meowing loudly at 5am next to human slave food dispenser meow loudly just to annoy owners meow.
Run up and down stairs bring 🐱 your owner a dead bird or hiiiiiiiiii feed me now murder hooman toes then cats take over the world see brother cat receive pets, attack out of jealousy, and is good you understand your place in my world. Cough hairball on conveniently placed pants. No, you can''t close the door, i haven''t decided whether or not i wanna go out scamper paw your face to wake you up in the morning enslave the hooman for immediately regret falling into bathtub yet do not try to mix old food with new one to fool me!. Being gorgeous with belly side up purr and poop on couch, steal the warm chair right after you get up. Man running from cops stops to pet cats, goes to jail white cat sleeps on a black shirt yet purrrrrr jump five feet high and sideways when a shadow moves.
Cough furball cat ass trophy cat not kitten around ccccccccccccaaaaaaaaaaaaaaatttttttttttttttttssssssssssssssss. My left donut is missing, as is my right. Lounge in doorway. Lounge in doorway meow go back to sleep owner brings food and water tries to pet on head, so scratch get sprayed by water because bad cat. Touch water with paw then recoil in horror find empty spot in cupboard and sleep all day morning beauty routine of licking self or catching very fast laser pointer. Cats are cute spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce or spill litter box, scratch at owner, destroy all furniture, especially couch. Being gorgeous with belly side up chase dog then run away destroy the blinds hell is other people yet white cat sleeps on a black shirt refuse to drink water except out of someone''s glass so pose purrfectly to show my beauty. In the middle of the night i crawl onto your chest and purr gently to help you sleep love. Hit you unexpectedly i''m going to lap some water out of my master''s cup meow. Found somthing move i bite it tail. You call this cat food claw at curtains stretch and yawn nibble on tuna ignore human bite human hand yet what the heck just happened, something feels fishy but if it fits i sits but burrow under covers stare at imaginary bug purrrrrr. Stare at ceiling light what the heck just happened, something feels fishy i heard this rumor where the humans are our owners, pfft, what do they know?! yet sit in a box for hours but if human is on laptop sit on the keyboard. Milk the cow meowing chowing and wowing give attitude, put toy mouse in food bowl run out of litter box at full speed . Kitty poochy scratch yet walk on car leaving trail of paw prints on hood and windshield and if human is on laptop sit on the keyboard ignore the squirrels, you''ll never catch them anyway. Ears back wide eyed poop in the plant pot love you, then bite you sleep on dog bed, force dog to sleep on floor yet i’m so hungry i’m so hungry but ew not for that so i am th') || TO_NCLOB('e best. As lick i the shoes eat all the power cords. Intently stare at the same spot sit on human they not getting up ever, attack feet. Plan steps for world domination. Chew iPad power cord present belly, scratch hand when stroked chase mice intrigued by the shower, bite off human''s toes.
Rub my belly hiss murf pratt ungow ungow. Cough furball licks your face when in doubt, wash. Fight own tail nya nya nyan. Try to jump onto window and fall while scratching at wall. Love and coo around boyfriend who purrs and makes the perfect moonlight eyes so i can purr and swat the glittery gleaming yarn to him (the yarn is from a $125 sweater) climb a tree, wait for a fireman jump to fireman then scratch his face. Get video posted to internet for chasing red dot get scared by doggo also cucumerro and plop down in the middle where everybody walks and run at 3am, cats are cute if it fits, i sits flee in terror at cucumber discovered on floor. Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff sleep in the bathroom sink or drink water out of the faucet. Rub face on owner if it smells like fish eat as much as you wish, yet jump off balcony, onto stranger''s head. Kitty power immediately regret falling into bathtub for i is not fat, i is fluffy yet bite nose of your human bring your owner a dead bird. Loved it, hated it, loved it, hated it hell is other people trip owner up in kitchen i want food. If it fits, i sits leave fur on owners clothes run as fast as i can into another room for no reason side-eyes your ""jerk"" other hand while being petted for wake up human for food at 4am.
Attack dog, run away and pretend to be victim stare at the wall, play with food and get confused by dust attack the child for swat at dog, or chase after silly colored fish toys around the house. Wake up wander around the house making large amounts of noise jump on top of your human''s bed and fall asleep again destroy house in 5 seconds i love cats i am one wake up scratch humans leg for food then purr then i have a and relax. Meowwww stare at the wall, play with food and get confused by dust and destroy house in 5 seconds. Has closed eyes but still sees you sit in box. Lick arm hair put toy mouse in food bowl run out of litter box at full speed sit by the fire and jump five feet high and sideways when a shadow moves or love me! wack the mini furry mouse, cat walks in keyboard . Disappear for four days and return home with an expensive injury; bite the vet love you, then bite you for stares at human while pushing stuff off a table, cats are fats i like to pets them they like to meow back. Mew love you, then bite you or hiding behind the couch until lured out by a feathery toy and refuse to leave cardboard box. Chase after silly colored fish toys around the house demand to be let outside at once, and expect owner to wait for me as i think about it grab pompom in mouth and put in water dish for fall asleep on the washing machine loved it, hated it, loved it, hated it what the heck just happened, something feels fishy yet check cat door for ambush 10 times before coming in. I''m bored inside, let me out i''m lonely outside, let me in i can''t make up my mind whether to go in or out, guess i''ll just stand partway in and partway out, contemplating the universe for half an hour how dare you nudge me with your foot?!?! leap into the air in greatest offense! morning beauty routine of licking self. Chew master''s slippers give me some of your food give me some of your food give me some of your food meh, i don''t want it. Chill on the couch table purr when give birth run around the house at 4 in the morning playing with balls of wool. Eat a rug and furry furry hairs everywhere oh no human coming lie on counter don''t get off counter litter box is life rub whiskers on bare sk') || TO_NCLOB('in act innocent paw at beetle and eat it before it gets away i''m bored inside, let me out i''m lonely outside, let me in i can''t make up my mind whether to go in or out, guess i''ll just stand partway in and partway out, contemplating the universe for half an hour how dare you nudge me with your foot?!?! leap into the air in greatest offense! meow meow yet loves cheeseburgers. That box? i can fit in that box refuse to drink water except out of someone''s glass. Mewl for food at 4am your pillow is now my pet bed decide to want nothing to do with my owner today sit by the fire. Cat jumps and falls onto the couch purrs and wakes up in a new dimension filled with kitty litter meow meow yummy there is a bunch of cats hanging around eating catnip carefully drink from water glass and then spill it everywhere and proceed to lick the puddle but rub my belly hiss good morning sunshine. Try to hold own back foot to clean it but foot reflexively kicks you in face, go into a rage and bite own foot, hard instead of drinking water from the cat bowl, make sure to steal water from the toilet. If it smells like fish eat as much as you wish i love cats i am one wake up scratch humans leg for food then purr then i have a and relax annoy owner until he gives you food say meow repeatedly until belly rubs, feels good yet sleep reaches under door into adjacent room. Eat fish on floor hide at bottom of staircase to trip human. Paw at beetle and eat it before it gets away friends are not food. Chase after silly colored fish toys around the house meow all night so hiss at vacuum cleaner have my breakfast spaghetti yarn for love me!. Refuse to drink water except out of someone''s glass claw at curtains stretch and yawn nibble on tuna ignore human bite human hand give attitude, yet plop down in the middle where everybody walks give attitude, and catch eat throw up catch eat throw up bad birds give me attention or face the wrath of my claws. Caticus cuteicus. Destroy couch sit on the laptop sit and stare. Jump up to edge of bath, fall in then scramble in a mad panic to get out run up and down stairs, and ask to be pet then attack owners hand.
Spend six hours per day washing, but still have a crusty butthole sugar, my siamese, stalks me (in a good way), day and night . Stare out cat door then go back inside flee in terror at cucumber discovered on floor. Refuse to leave cardboard box sun bathe ignore the squirrels, you''ll never catch them anyway. Run around the house at 4 in the morning cat meoooow i iz master of hoomaan, not hoomaan master of i, oooh damn dat dog leave fur on owners clothes. Knock over christmas tree immediately regret falling into bathtub check cat door for ambush 10 times before coming in yet kitty loves pigs for stretch cat mojo , and eat a plant, kill a hand. Look at dog hiiiiiisssss pee on walls it smells like breakfast. Eats owners hair then claws head. Grab pompom in mouth and put in water dish eat a rug and furry furry hairs everywhere oh no human coming lie on counter don''t get off counter but meow meow, i tell my human or scratch leg; meow for can opener to feed me for chew master''s slippers. There''s a forty year old lady there let us feast.
I heard this rumor where the humans are our owners 😻, pfft, what do they know?! who''s the baby, stare at wall turn and meow stare at wall some more meow again continue staring so hunt anything that moves my left donut is missing, as is my right, for stuff and things. Pet me pet me don''t pet me. Sugar, my siamese, stalks me (in a good way), day and night . Instead of drinking water from the cat bowl, make sure to steal water from the toilet i love cuddles catching very fast laser pointer, for jump up to edge of bath, fall in then scramble in a mad panic to get out, or woops poop hanging from butt must get rid run run around house drag poop on floor maybe it comes off woops left bro') || TO_NCLOB('wn marks on floor human slave clean lick butt now as lick i the shoes. Stuff and things being gorgeous with belly side up ignore the squirrels, you''ll never catch them anyway pounce on unsuspecting person eat and than sleep on your face. Cat cat moo moo lick ears lick paws lick butt, for poop in a handbag look delicious and drink the soapy mopping up water then puke giant foamy fur-balls. Fight own tail Gate keepers of hell or favor packaging over toy sleep all day whilst slave is at work, play all night whilst slave is sleeping where is my slave? I''m getting hungry, yet immediately regret falling into bathtub. Pet me pet me don''t pet me instantly break out into full speed gallop across the house for no reason. Gnaw the corn cob scratch the postman wake up lick paw wake up owner meow meow poop in a handbag look delicious and drink the soapy mopping up water then puke giant foamy fur-balls so plan steps for world domination destroy couch, chase laser and push your water glass on the floor. Check cat door for ambush 10 times before coming in always ensure to lay down in such a manner that tail can lightly brush human''s nose so cats are the world and snuggles up to shoulders or knees and purrs you to sleep. Eat a plant, kill a hand eat fish on floor see owner, run in terror pretend not to be evil. Leave hair on owner''s clothes carefully drink from water glass and then spill it everywhere and proceed to lick the puddle destroy couch as revenge there''s a forty year old lady there let us feast if it smells like fish eat as much as you wish. Tickle my belly at your own peril i will pester for food when you''re in the kitchen even if it''s salad intrigued by the shower, but intently sniff hand stretch, yet eat the rubberband and experiences short bursts of poo-phoria after going to the loo cat mojo . Run around the house at 4 in the morning all of a sudden cat goes crazy, scream at teh bath and groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked or my slave human didn''t give me any food so i pooped on the floor and you have cat to be kitten me right meow bite nose of your human. Hate dog chew on cable, yet i’m so hungry i’m so hungry but ew not for that chase red laser dot pet me pet me pet me pet me, bite, scratch, why are you petting me play riveting piece on synthesizer keyboard purr purr purr until owner pets why owner not pet me hiss scratch meow. Put butt in owner''s face then cats take over the world cat meoooow i iz master of hoomaan, not hoomaan master of i, oooh damn dat dog. Dont wait for the storm to pass, dance in the rain sleep all day whilst slave is at work, play all night whilst slave is sleeping curl into a furry donut let me in let me out let me in let me out let me in let me out who broke this door anyway , for push your water glass on the floor yet destroy couch as revenge. Bleghbleghvomit my furball really tie the room together meow in empty rooms and eat grass, throw it back up for rub butt on table adventure always. Climb a tree, wait for a fireman jump to fireman then scratch his face leave fur on owners clothes if human is on laptop sit on the keyboard human clearly uses close to one life a night no one naps that long so i revive by standing on chestawaken!, for brown cats with pink ears, and spot something, big eyes, big eyes, crouch, shake butt, prepare to pounce yet plop down in the middle where everybody walks. Groom forever, stretch tongue and leave it slightly out, blep scratch the furniture eat all the power cords. Love me! nya nya nyan run around the house at 4 in the morning. Sleep going to catch the red dot today going to catch the red dot today, curl up and sleep on the freshly laundered towels open the door, let me out, let me out, let me-out, let me-aow, let meaow, meaow!, tickle my belly at your own peril i will pester fo') || TO_NCLOB('r food when you''re in the kitchen even if it''s salad . My slave human didn''t give me any food so i pooped on the floor see brother cat receive pets, attack out of jealousy, or hide when guests come over caticus cuteicus. You are a captive audience while sitting on the toilet, pet me peer out window, chatter at birds, lure them to mouth and put butt in owner''s face but eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap or wake up wander around the house making large amounts of noise jump on top of your human''s bed and fall asleep again for eat fish on floor.
Mrow stare out cat door then go back inside, run outside as soon as door open or i hate cucumber pls dont throw it at me run up and down stairs for fall asleep on the washing machine. Love me!. Hide at bottom of staircase to trip human attack like a vicious monster carefully drink from water glass and then spill it everywhere and proceed to lick the puddle yet miaow then turn around and show you my bum. I like fish munch on tasty moths. Steal the warm chair right after you get up snuggles up to shoulders or knees and purrs you to sleep and carefully drink from water glass and then spill it everywhere and proceed to lick the puddle dont wait for the storm to pass, dance in the rain scratch the box. Sleep in the bathroom sink. I like big cats and i can not lie find something else more interesting, and stare out the window push your water glass on the floor. Bathe private parts with tongue then lick owner''s face. Peer out window, chatter at birds, lure them to mouth sit by the fire, eat too much then proceed to regurgitate all over living room carpet while humans eat dinner chase red laser dot russian blue. Spit up on light gray carpet instead of adjacent linoleum groom yourself 4 hours - checked, have your beauty sleep 18 hours - checked, be fabulous for the rest of the day - checked destroy couch as revenge yet sniff sniff lick the plastic bag eat the rubberband. Leave fur on owners clothes poop in litter box, scratch the walls. Then cats take over the world catasstrophe allways wanting food. Kitty time attack like a vicious monster so with tail in the air yet chew master''s slippers, yet relentlessly pursues moth or wake up human for food at 4am. Refuse to come home when humans are going to bed; stay out all night then yowl like i am dying at 4am pooping rainbow while flying in a toasted bread costume in space, but prance along on top of the garden fence, annoy the neighbor''s dog and make it bark let me in let me out let me in let me out let me in let me out who broke this door anyway for sugar, my siamese, stalks me (in a good way), day and night relentlessly pursues moth bite off human''s toes. Somehow manage to catch a bird but have no idea what to do next, so play with it until it dies of shock attack like a vicious monster kitty pounce, trip, faceplant you didn''t see that no you didn''t definitely didn''t lick, lick, lick, and preen away the embarrassment for howl uncontrollably for no reason. Cat dog hate mouse eat string barf pillow no baths hate everything cat mojo get suspicious of own shadow then go play with toilette paper yet lick the curtain just to be annoying let me in let me out let me in let me out let me in let me out who broke this door anyway .
')";
[SetUp]
public void SetUp()
{
_quoter = new OracleQuoter();
}
[Test]
public void TimeSpanIsFormattedQuotes()
{
_quoter.QuoteValue(new TimeSpan(1, 2, 13, 65))
.ShouldBe("'1 2:14:5.0'");
}
[Test]
public void GuidIsFormattedAsOracleAndQuoted()
{
Guid givenValue = new Guid("CC28B6C7-9260-4800-9C1F-A5243960C087");
_quoter.QuoteValue(givenValue)
.ShouldBe("'C7B628CC609200489C1FA5243960C087'");
}
[Test]
[Category("NotWorkingOnMono")]
public void LargeNonUnicodeStringIsChunked()
{
var chunks = _quoter.QuoteValue(new NonUnicodeString(OracleDataTests.LargeString));
chunks.ShouldBe(LargeNonUnicodeStringChunked);
}
[Test]
[Category("NotWorkingOnMono")]
public void LargeStringIsChunked()
{
var chunks = _quoter.QuoteValue(OracleDataTests.LargeString);
chunks.ShouldBe(LargeStringChunked);
}
[Test]
[TestCase(OracleDataTests.LargeString, OracleQuoterBase.MaxChunkLength)]
[TestCase(OracleDataTests.LargeString, 500)]
[TestCase(OracleDataTests.LargeString, 100)]
[TestCase(OracleDataTests.LargeString, 10)]
[TestCase(OracleDataTests.LargeString, 2)]
[TestCase("foo bar baz", OracleQuoterBase.MaxChunkLength)]
[TestCase("foo bar baz", 500)]
[TestCase("foo bar baz", 100)]
[TestCase("foo bar baz", 10)]
[TestCase("foo bar baz", 2)]
public void LargeStringChunkerKeepsStringIntact(string str, int chunkSize)
{
var splitted = OracleQuoterBase.SplitBy(str, chunkSize);
var result = string.Join("", splitted);
result.ShouldBe(str);
}
} | 870 | 56,953 | #region License
//
// Copyright (c) 2018, Fluent Migrator Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion
namespace FluentMigrator.Runner.Generators.Oracle
{
public class OracleQuoter : OracleQuoterQuotedIdentifier
{
public override string Quote(string name)
{
return UnQuote(name);
}
public override string QuoteConstraintName(string constraintName, string schemaName = null)
{
return base.QuoteConstraintName(UnQuote(constraintName), UnQuote(schemaName));
}
public override string QuoteIndexName(string indexName, string schemaName)
{
return base.QuoteIndexName(UnQuote(indexName), UnQuote(schemaName));
}
public override string QuoteTableName(string tableName, string schemaName = null)
{
return base.QuoteTableName(UnQuote(tableName), UnQuote(schemaName));
}
public override string QuoteSequenceName(string sequenceName, string schemaName)
{
return base.QuoteTableName(UnQuote(sequenceName), UnQuote(schemaName));
}
}
}
|
fluentmigrator | fluentmigrator | F:\Projects\TestMap\Temp\fluentmigrator\FluentMigrator.sln | F:\Projects\TestMap\Temp\fluentmigrator\test\FluentMigrator.Tests\FluentMigrator.Tests.csproj | F:\Projects\TestMap\Temp\fluentmigrator\test\FluentMigrator.Tests\Unit\Generators\Postgres\PostgresDescriptionGeneratorTest.cs | FluentMigrator.Tests.Unit.Generators.Postgres
| PostgresDescriptionGeneratorTests | [] | ['System', 'System.Linq', 'FluentMigrator.Runner.Generators.Postgres', 'FluentMigrator.Runner.Processors.Postgres', 'NUnit.Framework', 'Shouldly'] | NUnit | net48 | [TestFixture]
[Category("Generator")]
[Category("Postgres")]
public class PostgresDescriptionGeneratorTests : BaseDescriptionGeneratorTests
{
[SetUp]
public void Setup()
{
var quoter = new PostgresQuoter(new PostgresOptions());
DescriptionGenerator = new PostgresDescriptionGenerator(quoter);
}
[Test]
public override void GenerateDescriptionStatementsForCreateTableReturnTableDescriptionStatement()
{
var createTableExpression = GeneratorTestHelper.GetCreateTableWithTableDescription();
var statements = DescriptionGenerator.GenerateDescriptionStatements(createTableExpression);
var result = statements.First();
result.ShouldBe("COMMENT ON TABLE \"public\".\"TestTable1\" IS 'TestDescription';");
}
[Test]
public override void GenerateDescriptionStatementsForCreateTableReturnTableDescriptionAndColumnDescriptionsStatements()
{
var createTableExpression = GeneratorTestHelper.GetCreateTableWithTableDescriptionAndColumnDescriptions();
var statements = DescriptionGenerator.GenerateDescriptionStatements(createTableExpression).ToArray();
var result = string.Join("", statements);
result.ShouldBe("COMMENT ON TABLE \"public\".\"TestTable1\" IS 'TestDescription';COMMENT ON COLUMN \"public\".\"TestTable1\".\"TestColumn1\" IS 'Description:TestColumn1Description';COMMENT ON COLUMN \"public\".\"TestTable1\".\"TestColumn2\" IS 'Description:TestColumn2Description';");
}
[Test]
public override void GenerateDescriptionStatementsForCreateTableReturnTableDescriptionAndColumnDescriptionsWithAdditionalDescriptionsStatements()
{
var createTableExpression = GeneratorTestHelper.GetCreateTableWithTableDescriptionAndColumnDescriptionsAndAdditionalDescriptions();
var statements = DescriptionGenerator.GenerateDescriptionStatements(createTableExpression).ToArray();
var result = string.Join("", statements);
result.ShouldBe("COMMENT ON TABLE \"public\".\"TestTable1\" IS 'TestDescription';COMMENT ON COLUMN \"public\".\"TestTable1\".\"TestColumn1\" IS 'Description:TestColumn1Description"+Environment.NewLine+
"AdditionalColumnDescriptionKey1:AdditionalColumnDescriptionValue1';COMMENT ON COLUMN \"public\".\"TestTable1\".\"TestColumn2\" IS 'Description:TestColumn2Description" + Environment.NewLine +
"AdditionalColumnDescriptionKey2:AdditionalColumnDescriptionValue2';");
}
[Test]
public override void GenerateDescriptionStatementForAlterTableReturnTableDescriptionStatement()
{
var alterTableExpression = GeneratorTestHelper.GetAlterTableWithDescriptionExpression();
var statement = DescriptionGenerator.GenerateDescriptionStatement(alterTableExpression);
statement.ShouldBe("COMMENT ON TABLE \"public\".\"TestTable1\" IS 'TestDescription';");
}
[Test]
public override void GenerateDescriptionStatementForCreateColumnReturnColumnDescriptionStatement()
{
var createColumnExpression = GeneratorTestHelper.GetCreateColumnExpressionWithDescription();
var statement = DescriptionGenerator.GenerateDescriptionStatement(createColumnExpression);
statement.ShouldBe("COMMENT ON COLUMN \"public\".\"TestTable1\".\"TestColumn1\" IS 'Description:TestColumn1Description';");
}
[Test]
public override void GenerateDescriptionStatementForCreateColumnReturnColumnDescriptionStatementWithAdditionalDescriptions()
{
var createColumnExpression = GeneratorTestHelper.GetCreateColumnExpressionWithDescriptionWithAdditionalDescriptions();
var statement = DescriptionGenerator.GenerateDescriptionStatement(createColumnExpression);
statement.ShouldBe("COMMENT ON COLUMN \"public\".\"TestTable1\".\"TestColumn1\" IS 'Description:TestColumn1Description"+Environment.NewLine +
"AdditionalColumnDescriptionKey1:AdditionalColumnDescriptionValue1';");
}
[Test]
public override void GenerateDescriptionStatementForAlterColumnReturnColumnDescriptionStatement()
{
var alterColumnExpression = GeneratorTestHelper.GetAlterColumnExpressionWithDescription();
var statement = DescriptionGenerator.GenerateDescriptionStatement(alterColumnExpression);
statement.ShouldBe("COMMENT ON COLUMN \"public\".\"TestTable1\".\"TestColumn1\" IS 'Description:TestColumn1Description';");
}
[Test]
public override void GenerateDescriptionStatementForAlterColumnReturnColumnDescriptionStatementWithAdditionalDescriptions()
{
var alterColumnExpression = GeneratorTestHelper.GetAlterColumnExpressionWithDescriptionWithAdditionalDescriptions();
var statement = DescriptionGenerator.GenerateDescriptionStatement(alterColumnExpression);
statement.ShouldBe("COMMENT ON COLUMN \"public\".\"TestTable1\".\"TestColumn1\" IS 'Description:TestColumn1Description"+Environment.NewLine+
"AdditionalColumnDescriptionKey1:AdditionalColumnDescriptionValue1';");
}
} | 903 | 6,316 | #region License
//
// Copyright (c) 2018, Fluent Migrator Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion
using FluentMigrator.Runner.Generators.Generic;
using JetBrains.Annotations;
namespace FluentMigrator.Runner.Generators.Postgres
{
/// <summary>
/// almost copied from OracleDescriptionGenerator,
/// modified for escaping table description
/// </summary>
public class PostgresDescriptionGenerator : GenericDescriptionGenerator
{
public PostgresDescriptionGenerator([NotNull] PostgresQuoter quoter)
{
Quoter = quoter;
}
protected IQuoter Quoter { get; }
#region Constants
private const string TableDescriptionTemplate = "COMMENT ON TABLE {0} IS '{1}';";
private const string ColumnDescriptionTemplate = "COMMENT ON COLUMN {0}.{1} IS '{2}';";
#endregion
private string GetFullTableName(string schemaName, string tableName)
{
return Quoter.QuoteTableName(tableName, schemaName);
}
protected override string GenerateTableDescription(
string schemaName, string tableName, string tableDescription)
{
if (string.IsNullOrEmpty(tableDescription))
return string.Empty;
return string.Format(TableDescriptionTemplate, GetFullTableName(schemaName, tableName), tableDescription.Replace("'", "''"));
}
protected override string GenerateColumnDescription(
string descriptionName, string schemaName, string tableName, string columnName, string columnDescription)
{
if (string.IsNullOrEmpty(columnDescription))
return string.Empty;
return string.Format(
ColumnDescriptionTemplate,
GetFullTableName(schemaName, tableName),
Quoter.QuoteColumnName(columnName),
columnDescription.Replace("'", "''"));
}
}
}
|
auth0 | auth0.net | F:\Projects\TestMap\Temp\auth0.net\Auth0.Net.sln | F:\Projects\TestMap\Temp\auth0.net\tests\Auth0.ManagementApi.IntegrationTests\Auth0.ManagementApi.IntegrationTests.csproj | F:\Projects\TestMap\Temp\auth0.net\tests\Auth0.ManagementApi.IntegrationTests\UserBlockTests.cs | Auth0.ManagementApi.IntegrationTests
| UserBlockTests | ['UserBlockTestsFixture fixture;'] | ['System', 'System.Collections.Generic', 'System.Data.Common', 'System.Threading.Tasks', 'Auth0.AuthenticationApi', 'Auth0.AuthenticationApi.Models', 'Auth0.Core.Exceptions', 'Auth0.IntegrationTests.Shared.CleanUp', 'Auth0.ManagementApi.IntegrationTests.Testing', 'Auth0.ManagementApi.Models', 'Auth0.Tests.Shared', 'FluentAssertions', 'Xunit', 'Xunit.Sdk'] | xUnit | net6.0 | public class UserBlockTests : IClassFixture<UserBlockTestsFixture>, IAsyncLifetime
{
UserBlockTestsFixture fixture;
public UserBlockTests(UserBlockTestsFixture fixture)
{
this.fixture = fixture;
}
public Task DisposeAsync()
{
return Task.CompletedTask;
}
public async Task InitializeAsync()
{
// Now try and sign in with a wrong password until we get "too many attempts"
bool userBlocked = false;
int attempts = 0;
do
{
try
{
attempts++;
await fixture.TestAuthenticationApiClient.GetTokenAsync(new ResourceOwnerTokenRequest
{
ClientId = TestBaseUtils.GetVariable("AUTH0_CLIENT_ID"),
ClientSecret = TestBaseUtils.GetVariable("AUTH0_CLIENT_SECRET"),
Realm = fixture.TestConnection.Name,
Scope = "openid",
Username = fixture.TestUser.Email,
Password = "wrong_password"
});
}
catch (RateLimitApiException)
{
await Task.Delay(1000);
}
catch (ErrorApiException ex)
{
if (ex.ApiError.Error == "too_many_attempts")
userBlocked = true;
}
} while (!userBlocked && attempts < 20); // Add failsafe to stop if we go over 20 attempts. User should be blocked by then, but just to make sure...
}
[Fact(Skip = "Flakey - Run Manually")]
public async Task Test_user_blocks_by_identifier()
{
// Check we should have 1 block for the user
var userBlocks = await fixture.ApiClient.UserBlocks.GetByIdentifierAsync(fixture.TestUser.Email);
userBlocks.BlockedFor.Should().HaveCount(1);
// Now unblock the user
await fixture.ApiClient.UserBlocks.UnblockByIdentifierAsync(fixture.TestUser.Email);
// Now ensure user is not blocked anymore
userBlocks = await fixture.ApiClient.UserBlocks.GetByIdentifierAsync(fixture.TestUser.Email);
userBlocks.BlockedFor.Should().BeEmpty();
}
[Fact(Skip = "Flakey - Run Manually")]
public async Task Test_user_blocks_by_userid()
{
// Check we should have 1 block for the user
var userBlocks = await fixture.ApiClient.UserBlocks.GetByUserIdAsync(fixture.TestUser.UserId);
userBlocks.BlockedFor.Should().HaveCount(1);
// Now unblock the user
await fixture.ApiClient.UserBlocks.UnblockByUserIdAsync(fixture.TestUser.UserId);
// Now ensure user is not blocked anymore
userBlocks = await fixture.ApiClient.UserBlocks.GetByUserIdAsync(fixture.TestUser.UserId);
userBlocks.BlockedFor.Should().BeEmpty();
}
} | 2,181 | 5,347 | using Newtonsoft.Json;
namespace Auth0.ManagementApi.Models
{
/// <summary>
/// Contains a list of blocks for a user
/// </summary>
public class UserBlocks
{
/// <summary>
/// An array of the blocks for the user
/// </summary>
[JsonProperty("blocked_for")]
public UserBlock[] BlockedFor { get; set; }
}
} |
vivet | GoogleApi | F:\Projects\TestMap\Temp\GoogleApi\GoogleApi.sln | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\GoogleApi.UnitTests.csproj | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\Common\Extensions\DateTimeExtensionTest.cs | GoogleApi.UnitTests.Common.Extensions | DateTimeExtensionTest | [] | ['System', 'GoogleApi.Entities.Common.Extensions', 'NUnit.Framework'] | NUnit | net462;net48;net481;net6.0;net8.0 | [TestFixture]
public class DateTimeExtensionTest
{
[Test]
public void DateTimeToUnixTimestampTest()
{
var dateTime = DateTime.UtcNow;
var expected = (int)(dateTime - DateTimeExtension.epoch).TotalSeconds;
var actual = dateTime.DateTimeToUnixTimestamp();
Assert.AreEqual(expected, actual);
}
} | 138 | 491 | using System;
namespace GoogleApi.Entities.Common.Extensions;
/// <summary>
/// DateTime extensions.
/// </summary>
public static class DateTimeExtension
{
/// <summary>
/// Unix Epoch value.
/// </summary>
public static readonly DateTime epoch = new(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
/// <summary>
/// Converts a DateTime to a Unix timestamp.
/// </summary>
public static int DateTimeToUnixTimestamp(this DateTime dateTime)
{
return (int)(dateTime - epoch).TotalSeconds;
}
} |
vivet | GoogleApi | F:\Projects\TestMap\Temp\GoogleApi\GoogleApi.sln | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\GoogleApi.UnitTests.csproj | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\Common\Extensions\EnumExtensionTest.cs | GoogleApi.UnitTests.Common.Extensions | EnumExtensionTest | [] | ['GoogleApi.Entities.Common.Enums', 'GoogleApi.Entities.Common.Extensions', 'GoogleApi.Entities.Maps.Common.Enums', 'GoogleApi.Entities.Maps.StaticMaps.Request.Enums', 'NUnit.Framework'] | NUnit | net462;net48;net481;net6.0;net8.0 | [TestFixture]
public class EnumExtensionTest
{
[Test]
public void ToEnumStringTest()
{
const AddressComponentType ENUM = AddressComponentType.Postal_Code;
var result = ENUM.ToEnumString('|');
Assert.AreEqual("postal_code", result);
}
[Test]
public void ToEnumStringWhenFlagsTest()
{
const AvoidWay ENUM = AvoidWay.Highways | AvoidWay.Tolls;
var result = ENUM.ToEnumString('|');
Assert.AreEqual("tolls|highways", result);
}
[Test]
public void ToEnumMemberStringTest()
{
const StyleFeature ENUM = StyleFeature.Transit;
var result = ENUM.ToEnumMemberString();
Assert.AreEqual("transit", result);
}
} | 265 | 1,015 | using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
namespace GoogleApi.Entities.Common.Extensions;
/// <summary>
/// Enum extensions.
/// </summary>
public static class EnumExtension
{
/// <summary>
/// Converts a <see cref="Enum"/> value to string.
/// If enum is a <see cref="FlagsAttribute"/>, values are separated by the passed <paramref name="delimeter"/>.
/// </summary>
/// <typeparam name="T">The <see cref="Enum"/> type.</typeparam>
/// <param name="enum">The <see cref="Enum"/> to convert of <typeparamref name="T"/>.</param>
/// <param name="delimeter">The separator inserted between each value if the <see cref="Enum"/>.</param>
/// <returns>A <see cref="string"/> representation of the enum value.</returns>
public static string ToEnumString<T>(this T @enum, char delimeter)
where T : struct
{
return Convert.ToString(@enum, CultureInfo.InvariantCulture)?.ToLower().Replace(',', delimeter).Replace(" ", "");
}
/// <summary>
/// Converts the enum into a string, by getting the <see cref="EnumMemberAttribute"/> value.
/// </summary>
/// <typeparam name="T">The <see cref="Enum"/> type.</typeparam>
/// <param name="enum">The enum value.</param>
/// <returns>A <see cref="string"/> representation of the enum value.</returns>
public static string ToEnumMemberString<T>(this T @enum)
where T : struct
{
return typeof(T)
.GetTypeInfo()
.DeclaredMembers
.SingleOrDefault(x => x.Name == @enum.ToString())?
.GetCustomAttribute<EnumMemberAttribute>(false)?
.Value;
}
} |
vivet | GoogleApi | F:\Projects\TestMap\Temp\GoogleApi\GoogleApi.sln | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\GoogleApi.UnitTests.csproj | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\Common\Extensions\ListExtensionTest.cs | GoogleApi.UnitTests.Common.Extensions | ListExtensionTest | [] | ['System', 'System.Collections.Generic', 'GoogleApi.Entities.Common.Extensions', 'NUnit.Framework'] | NUnit | net462;net48;net481;net6.0;net8.0 | [TestFixture]
public class ListExtensionTest
{
[Test]
public void AddTest()
{
var list = new List<KeyValuePair<string, string>>();
const string KEY = "abc";
const string VALUE = "123";
list.Add(KEY, VALUE);
Assert.Contains(new KeyValuePair<string, string>(KEY, VALUE), list);
}
[Test]
public void AddWhenKeyIsNull()
{
const string VALUE = "testName";
var queryStringParameters = new List<KeyValuePair<string, string>>();
var exception = Assert.Throws<ArgumentNullException>(() => queryStringParameters.Add(null, VALUE));
Assert.IsNotNull(exception);
Assert.IsTrue(exception.Message.StartsWith("Value cannot be null"));
Assert.IsTrue(exception.Message.Contains("key"));
}
} | 173 | 997 | using System;
using System.Collections.Generic;
namespace GoogleApi.Entities.Common.Extensions;
/// <summary>
/// List Extensions.
/// </summary>
public static class ListExtension
{
/// <summary>
/// Adds a <see cref="KeyValuePair{TKey,TValue}"/> to generic <see cref="List{KeyValuePair}"/>.
/// </summary>
/// <param name="list">The <see cref="List{T}"/> to add a <see cref="KeyValuePair{TKey,TValue}"/> to.</param>
/// <param name="key">The <see cref="string"/> key.</param>
/// <param name="value">The <see cref="string"/> value.</param>
public static void Add(this IList<KeyValuePair<string, string>> list, string key, string value = null)
{
if (list == null)
throw new ArgumentNullException(nameof(list));
if (key == null)
throw new ArgumentNullException(nameof(key));
var parameter = new KeyValuePair<string, string>(key, value);
list.Add(parameter);
}
} |
vivet | GoogleApi | F:\Projects\TestMap\Temp\GoogleApi\GoogleApi.sln | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\GoogleApi.UnitTests.csproj | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\Extensions\ServiceCollectionExtensionTests.cs | GoogleApi.UnitTests.Extensions | ServiceCollectionExtensionTests | ['private IServiceProvider provider;'] | ['GoogleApi.Entities.Maps.Directions.Request', 'GoogleApi.Entities.Maps.Directions.Response', 'GoogleApi.Entities.Maps.DistanceMatrix.Request', 'GoogleApi.Entities.Maps.DistanceMatrix.Response', 'GoogleApi.Entities.Maps.Elevation.Request', 'GoogleApi.Entities.Maps.Elevation.Response', 'GoogleApi.Entities.Maps.Geocoding', 'GoogleApi.Entities.Maps.Geocoding.Address.Request', 'GoogleApi.Entities.Maps.Geocoding.Location.Request', 'GoogleApi.Entities.Maps.Geocoding.Place.Request', 'GoogleApi.Entities.Maps.Geocoding.PlusCode.Request', 'GoogleApi.Entities.Maps.Geocoding.PlusCode.Response', 'GoogleApi.Entities.Maps.Geolocation.Request', 'GoogleApi.Entities.Maps.Geolocation.Response', 'GoogleApi.Entities.Maps.Roads.NearestRoads.Request', 'GoogleApi.Entities.Maps.Roads.NearestRoads.Response', 'GoogleApi.Entities.Maps.Roads.SnapToRoads.Request', 'GoogleApi.Entities.Maps.Roads.SnapToRoads.Response', 'GoogleApi.Entities.Maps.Roads.SpeedLimits.Request', 'GoogleApi.Entities.Maps.Roads.SpeedLimits.Response', 'GoogleApi.Entities.Maps.StaticMaps.Request', 'GoogleApi.Entities.Maps.StaticMaps.Response', 'GoogleApi.Entities.Maps.StreetView.Request', 'GoogleApi.Entities.Maps.StreetView.Response', 'GoogleApi.Entities.Maps.TimeZone.Request', 'GoogleApi.Entities.Maps.TimeZone.Response', 'GoogleApi.Entities.Places.AutoComplete.Request', 'GoogleApi.Entities.Places.AutoComplete.Response', 'GoogleApi.Entities.Places.Details.Request', 'GoogleApi.Entities.Places.Details.Response', 'GoogleApi.Entities.Places.Photos.Request', 'GoogleApi.Entities.Places.Photos.Response', 'GoogleApi.Entities.Places.QueryAutoComplete.Request', 'GoogleApi.Entities.Places.QueryAutoComplete.Response', 'GoogleApi.Entities.Places.Search.Find.Request', 'GoogleApi.Entities.Places.Search.Find.Response', 'GoogleApi.Entities.Places.Search.NearBy.Request', 'GoogleApi.Entities.Places.Search.NearBy.Response', 'GoogleApi.Entities.Places.Search.Text.Request', 'GoogleApi.Entities.Places.Search.Text.Response', 'GoogleApi.Entities.Search', 'GoogleApi.Entities.Search.Image.Request', 'GoogleApi.Entities.Search.Video.Channels.Request', 'GoogleApi.Entities.Search.Video.Channels.Response', 'GoogleApi.Entities.Search.Video.Playlists.Request', 'GoogleApi.Entities.Search.Video.Playlists.Response', 'GoogleApi.Entities.Search.Video.Videos.Request', 'GoogleApi.Entities.Search.Video.Videos.Response', 'GoogleApi.Entities.Search.Web.Request', 'GoogleApi.Entities.Translate.Detect.Request', 'GoogleApi.Entities.Translate.Detect.Response', 'GoogleApi.Entities.Translate.Languages.Request', 'GoogleApi.Entities.Translate.Languages.Response', 'GoogleApi.Entities.Translate.Translate.Request', 'GoogleApi.Entities.Translate.Translate.Response', 'Microsoft.Extensions.DependencyInjection', 'NUnit.Framework', 'System', 'System.Linq', 'System.Net', 'System.Net.Http', 'System.Net.Http.Headers', 'GoogleApi.Extensions', 'GoogleApi.Interfaces.Maps', 'GoogleApi.Interfaces.Maps.Geocode', 'GoogleApi.Interfaces.Maps.Roads', 'GoogleApi.Interfaces.Places', 'GoogleApi.Interfaces.Places.Search', 'GoogleApi.Interfaces.Search', 'GoogleApi.Interfaces.Search.Video', 'GoogleApi.Interfaces.Translate'] | NUnit | net462;net48;net481;net6.0;net8.0 | [TestFixture]
public class ServiceCollectionExtensionTests
{
private IServiceProvider provider;
[OneTimeSetUp]
public void OneTimeSetUp()
{
var services = new ServiceCollection();
services
.AddGoogleApiClients();
this.provider = services
.BuildServiceProvider();
}
[Test]
public void ResolveGoogleApiClientTest()
{
var httpClientFactory = this.provider
.GetRequiredService<IHttpClientFactory>();
var httpClient = httpClientFactory
.CreateClient(nameof(GoogleApi));
Assert.IsInstanceOf<HttpClient>(httpClient);
var expected = new MediaTypeWithQualityHeaderValue("application/json");
Assert.Contains(expected, httpClient.DefaultRequestHeaders.Accept.ToArray());
Assert.AreEqual(httpClient.Timeout, TimeSpan.FromSeconds(30));
var defaultHttpClientHandler = HttpClientFactory.GetDefaultHttpClientHandler();
var hasGZip = defaultHttpClientHandler.AutomaticDecompression.HasFlag(DecompressionMethods.GZip);
Assert.True(hasGZip);
var hasDeflate = defaultHttpClientHandler.AutomaticDecompression.HasFlag(DecompressionMethods.Deflate);
Assert.True(hasDeflate);
}
[Test]
public void ResolveMapsDirectionsApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.DirectionsApi>();
Assert.IsInstanceOf<HttpEngine<DirectionsRequest, DirectionsResponse>>(result);
}
[Test]
public void ResolveMapsDirectionsApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IDirectionsApi>();
Assert.IsInstanceOf<GoogleMaps.DirectionsApi>(result);
Assert.IsInstanceOf<HttpEngine<DirectionsRequest, DirectionsResponse>>(result);
}
[Test]
public void ResolveMapsDistanceMatrixApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.DistanceMatrixApi>();
Assert.IsInstanceOf<HttpEngine<DistanceMatrixRequest, DistanceMatrixResponse>>(result);
}
[Test]
public void ResolveMapsDistanceMatrixApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IDistanceMatrixApi>();
Assert.IsInstanceOf<GoogleMaps.DistanceMatrixApi>(result);
Assert.IsInstanceOf<HttpEngine<DistanceMatrixRequest, DistanceMatrixResponse>>(result);
}
[Test]
public void ResolveMapsElevationApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.ElevationApi>();
Assert.IsInstanceOf<HttpEngine<ElevationRequest, ElevationResponse>>(result);
}
[Test]
public void ResolveMapsElevationApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IElevationApi>();
Assert.IsInstanceOf<GoogleMaps.ElevationApi>(result);
Assert.IsInstanceOf<HttpEngine<ElevationRequest, ElevationResponse>>(result);
}
[Test]
public void ResolveMapsGeolocationApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.GeolocationApi>();
Assert.IsInstanceOf<HttpEngine<GeolocationRequest, GeolocationResponse>>(result);
}
[Test]
public void ResolveMapsGeolocationApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IGeolocationApi>();
Assert.IsInstanceOf<GoogleMaps.GeolocationApi>(result);
Assert.IsInstanceOf<HttpEngine<GeolocationRequest, GeolocationResponse>>(result);
}
[Test]
public void ResolveMapsGeocodeAddressGeocodeApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.Geocode.AddressGeocodeApi>();
Assert.IsInstanceOf<HttpEngine<AddressGeocodeRequest, GeocodeResponse>>(result);
}
[Test]
public void ResolveMapsGeocodeAddressGeocodeApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IAddressGeocodeApi>();
Assert.IsInstanceOf<GoogleMaps.Geocode.AddressGeocodeApi>(result);
Assert.IsInstanceOf<HttpEngine<AddressGeocodeRequest, GeocodeResponse>>(result);
}
[Test]
public void ResolveMapsGeocodeLocationGeocodeApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.Geocode.LocationGeocodeApi>();
Assert.IsInstanceOf<HttpEngine<LocationGeocodeRequest, GeocodeResponse>>(result);
}
[Test]
public void ResolveMapsGeocodeLocationGeocodeApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<ILocationGeocodeApi>();
Assert.IsInstanceOf<GoogleMaps.Geocode.LocationGeocodeApi>(result);
Assert.IsInstanceOf<HttpEngine<LocationGeocodeRequest, GeocodeResponse>>(result);
}
[Test]
public void ResolveMapsGeocodePlaceGeoCodeApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.Geocode.PlaceGeocodeApi>();
Assert.IsInstanceOf<HttpEngine<PlaceGeocodeRequest, GeocodeResponse>>(result);
}
[Test]
public void ResolveMapsGeocodePlaceGeoCodeApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IPlaceGeocodeApi>();
Assert.IsInstanceOf<GoogleMaps.Geocode.PlaceGeocodeApi>(result);
Assert.IsInstanceOf<HttpEngine<PlaceGeocodeRequest, GeocodeResponse>>(result);
}
[Test]
public void ResolveMapsGeocodePlusCodeGeocodeApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.Geocode.PlusCodeGeocodeApi>();
Assert.IsInstanceOf<HttpEngine<PlusCodeGeocodeRequest, PlusCodeGeocodeResponse>>(result);
}
[Test]
public void ResolveMapsGeocodePlusCodeGeocodeApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IPlusCodeGeocodeApi>();
Assert.IsInstanceOf<GoogleMaps.Geocode.PlusCodeGeocodeApi>(result);
Assert.IsInstanceOf<HttpEngine<PlusCodeGeocodeRequest, PlusCodeGeocodeResponse>>(result);
}
[Test]
public void ResolveMapsRoadsNearestRoadsApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.Roads.NearestRoadsApi>();
Assert.IsInstanceOf<HttpEngine<NearestRoadsRequest, NearestRoadsResponse>>(result);
}
[Test]
public void ResolveMapsRoadsNearestRoadsApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<INearestRoadsApi>();
Assert.IsInstanceOf<GoogleMaps.Roads.NearestRoadsApi>(result);
Assert.IsInstanceOf<HttpEngine<NearestRoadsRequest, NearestRoadsResponse>>(result);
}
[Test]
public void ResolveMapsRoadsSnapToRoadApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.Roads.SnapToRoadApi>();
Assert.IsInstanceOf<HttpEngine<SnapToRoadsRequest, SnapToRoadsResponse>>(result);
}
[Test]
public void ResolveMapsRoadsSnapToRoadApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<ISnapToRoadApi>();
Assert.IsInstanceOf<GoogleMaps.Roads.SnapToRoadApi>(result);
Assert.IsInstanceOf<HttpEngine<SnapToRoadsRequest, SnapToRoadsResponse>>(result);
}
[Test]
public void ResolveMapsRoadsSpeedLimitsApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.Roads.SpeedLimitsApi>();
Assert.IsInstanceOf<HttpEngine<SpeedLimitsRequest, SpeedLimitsResponse>>(result);
}
[Test]
public void ResolveMapsRoadsSpeedLimitsApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<ISpeedLimitsApi>();
Assert.IsInstanceOf<GoogleMaps.Roads.SpeedLimitsApi>(result);
Assert.IsInstanceOf<HttpEngine<SpeedLimitsRequest, SpeedLimitsResponse>>(result);
}
[Test]
public void ResolveMapsStreetViewApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.StreetViewApi>();
Assert.IsInstanceOf<HttpEngine<StreetViewRequest, StreetViewResponse>>(result);
}
[Test]
public void ResolveMapsStreetViewApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IStreetViewApi>();
Assert.IsInstanceOf<GoogleMaps.StreetViewApi>(result);
Assert.IsInstanceOf<HttpEngine<StreetViewRequest, StreetViewResponse>>(result);
}
[Test]
public void ResolveMapsStaticMapsApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.StaticMapsApi>();
Assert.IsInstanceOf<HttpEngine<StaticMapsRequest, StaticMapsResponse>>(result);
}
[Test]
public void ResolveMapsStaticMapsApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IStaticMapsApi>();
Assert.IsInstanceOf<GoogleMaps.StaticMapsApi>(result);
Assert.IsInstanceOf<HttpEngine<StaticMapsRequest, StaticMapsResponse>>(result);
}
[Test]
public void ResolveMapsTimeZoneApiTest()
{
var result = this.provider
.GetRequiredService<GoogleMaps.TimeZoneApi>();
Assert.IsInstanceOf<HttpEngine<TimeZoneRequest, TimeZoneResponse>>(result);
}
[Test]
public void ResolveMapsTimeZoneApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<ITimeZoneApi>();
Assert.IsInstanceOf<GoogleMaps.TimeZoneApi>(result);
Assert.IsInstanceOf<HttpEngine<TimeZoneRequest, TimeZoneResponse>>(result);
}
[Test]
public void ResolvePlacesAutoCompleteApiTest()
{
var result = this.provider
.GetRequiredService<GooglePlaces.AutoCompleteApi>();
Assert.IsInstanceOf<HttpEngine<PlacesAutoCompleteRequest, PlacesAutoCompleteResponse>>(result);
}
[Test]
public void ResolvePlacesAutoCompleteApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IAutoCompleteApi>();
Assert.IsInstanceOf<GooglePlaces.AutoCompleteApi>(result);
Assert.IsInstanceOf<HttpEngine<PlacesAutoCompleteRequest, PlacesAutoCompleteResponse>>(result);
}
[Test]
public void ResolvePlacesDetailsApiTest()
{
var result = this.provider
.GetRequiredService<GooglePlaces.DetailsApi>();
Assert.IsInstanceOf<HttpEngine<PlacesDetailsRequest, PlacesDetailsResponse>>(result);
}
[Test]
public void ResolvePlacesDetailsApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IDetailsApi>();
Assert.IsInstanceOf<GooglePlaces.DetailsApi>(result);
Assert.IsInstanceOf<HttpEngine<PlacesDetailsRequest, PlacesDetailsResponse>>(result);
}
[Test]
public void ResolvePlacesPhotosApiTest()
{
var result = this.provider
.GetRequiredService<GooglePlaces.PhotosApi>();
Assert.IsInstanceOf<HttpEngine<PlacesPhotosRequest, PlacesPhotosResponse>>(result);
}
[Test]
public void ResolvePlacesPhotosApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IPhotosApi>();
Assert.IsInstanceOf<GooglePlaces.PhotosApi>(result);
Assert.IsInstanceOf<HttpEngine<PlacesPhotosRequest, PlacesPhotosResponse>>(result);
}
[Test]
public void ResolvePlacesQueryAutoCompleteApiTest()
{
var result = this.provider
.GetRequiredService<GooglePlaces.QueryAutoCompleteApi>();
Assert.IsInstanceOf<HttpEngine<PlacesQueryAutoCompleteRequest, PlacesQueryAutoCompleteResponse>>(result);
}
[Test]
public void ResolvePlacesQueryAutoCompleteApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IQueryAutoCompleteApi>();
Assert.IsInstanceOf<GooglePlaces.QueryAutoCompleteApi>(result);
Assert.IsInstanceOf<HttpEngine<PlacesQueryAutoCompleteRequest, PlacesQueryAutoCompleteResponse>>(result);
}
[Test]
public void ResolvePlacesSearchFindSearchApiTest()
{
var result = this.provider
.GetRequiredService<GooglePlaces.Search.FindSearchApi>();
Assert.IsInstanceOf<HttpEngine<PlacesFindSearchRequest, PlacesFindSearchResponse>>(result);
}
[Test]
public void ResolvePlacesSearchFindSearchApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IFindSearchApi>();
Assert.IsInstanceOf<GooglePlaces.Search.FindSearchApi>(result);
Assert.IsInstanceOf<HttpEngine<PlacesFindSearchRequest, PlacesFindSearchResponse>>(result);
}
[Test]
public void ResolvePlacesSearchNearBySearchApiTest()
{
var result = this.provider
.GetRequiredService<GooglePlaces.Search.NearBySearchApi>();
Assert.IsInstanceOf<HttpEngine<PlacesNearBySearchRequest, PlacesNearbySearchResponse>>(result);
}
[Test]
public void ResolvePlacesSearchNearBySearchApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<INearBySearchApi>();
Assert.IsInstanceOf<GooglePlaces.Search.NearBySearchApi>(result);
Assert.IsInstanceOf<HttpEngine<PlacesNearBySearchRequest, PlacesNearbySearchResponse>>(result);
}
[Test]
public void ResolvePlacesSearchTextSearchApiTest()
{
var result = this.provider
.GetRequiredService<GooglePlaces.Search.TextSearchApi>();
Assert.IsInstanceOf<HttpEngine<PlacesTextSearchRequest, PlacesTextSearchResponse>>(result);
}
[Test]
public void ResolvePlacesSearchTextSearchApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<ITextSearchApi>();
Assert.IsInstanceOf<GooglePlaces.Search.TextSearchApi>(result);
Assert.IsInstanceOf<HttpEngine<PlacesTextSearchRequest, PlacesTextSearchResponse>>(result);
}
[Test]
public void ResolveSearchWebSearchApiTest()
{
var result = this.provider
.GetRequiredService<GoogleSearch.WebSearchApi>();
Assert.IsInstanceOf<HttpEngine<WebSearchRequest, BaseSearchResponse>>(result);
}
[Test]
public void ResolveSearchWebSearchApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IWebSearchApi>();
Assert.IsInstanceOf<GoogleSearch.WebSearchApi>(result);
Assert.IsInstanceOf<HttpEngine<WebSearchRequest, BaseSearchResponse>>(result);
}
[Test]
public void ResolveSearchImageSearchApiTest()
{
var result = this.provider
.GetRequiredService<GoogleSearch.ImageSearchApi>();
Assert.IsInstanceOf<HttpEngine<ImageSearchRequest, BaseSearchResponse>>(result);
}
[Test]
public void ResolveSearchImageSearchApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IImageSearchApi>();
Assert.IsInstanceOf<GoogleSearch.ImageSearchApi>(result);
Assert.IsInstanceOf<HttpEngine<ImageSearchRequest, BaseSearchResponse>>(result);
}
[Test]
public void ResolveSearchVideoSearchChannelsApiTest()
{
var result = this.provider
.GetRequiredService<GoogleSearch.VideoSearch.ChannelsApi>();
Assert.IsInstanceOf<HttpEngine<ChannelSearchRequest, ChannelSearchResponse>>(result);
}
[Test]
public void ResolveSearchVideoSearchChannelsApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IChannelsApi>();
Assert.IsInstanceOf<GoogleSearch.VideoSearch.ChannelsApi>(result);
Assert.IsInstanceOf<HttpEngine<ChannelSearchRequest, ChannelSearchResponse>>(result);
}
[Test]
public void ResolveSearchVideoSearchPlaylistsApiTest()
{
var result = this.provider
.GetRequiredService<GoogleSearch.VideoSearch.PlaylistsApi>();
Assert.IsInstanceOf<HttpEngine<PlaylistSearchRequest, PlaylistSearchResponse>>(result);
}
[Test]
public void ResolveSearchVideoSearchPlaylistsApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IPlaylistsApi>();
Assert.IsInstanceOf<GoogleSearch.VideoSearch.PlaylistsApi>(result);
Assert.IsInstanceOf<HttpEngine<PlaylistSearchRequest, PlaylistSearchResponse>>(result);
}
[Test]
public void ResolveSearchVideoSearchVideosApiTest()
{
var result = this.provider
.GetRequiredService<GoogleSearch.VideoSearch.VideosApi>();
Assert.IsInstanceOf<HttpEngine<VideoSearchRequest, VideoSearchResponse>>(result);
}
[Test]
public void ResolveSearchVideoSearchVideosApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IVideosApi>();
Assert.IsInstanceOf<GoogleSearch.VideoSearch.VideosApi>(result);
Assert.IsInstanceOf<HttpEngine<VideoSearchRequest, VideoSearchResponse>>(result);
}
[Test]
public void ResolveTranslateTranslateApiTest()
{
var result = this.provider
.GetRequiredService<GoogleTranslate.TranslateApi>();
Assert.IsInstanceOf<HttpEngine<TranslateRequest, TranslateResponse>>(result);
}
[Test]
public void ResolveTranslateTranslateApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<ITranslateApi>();
Assert.IsInstanceOf<GoogleTranslate.TranslateApi>(result);
Assert.IsInstanceOf<HttpEngine<TranslateRequest, TranslateResponse>>(result);
}
[Test]
public void ResolveTranslateDetectApiTest()
{
var result = this.provider
.GetRequiredService<GoogleTranslate.DetectApi>();
Assert.IsInstanceOf<HttpEngine<DetectRequest, DetectResponse>>(result);
}
[Test]
public void ResolveTranslateDetectApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<IDetectApi>();
Assert.IsInstanceOf<GoogleTranslate.DetectApi>(result);
Assert.IsInstanceOf<HttpEngine<DetectRequest, DetectResponse>>(result);
}
[Test]
public void ResolveTranslateLanguagesApiTest()
{
var result = this.provider
.GetRequiredService<GoogleTranslate.LanguagesApi>();
Assert.IsInstanceOf<HttpEngine<LanguagesRequest, LanguagesResponse>>(result);
}
[Test]
public void ResolveTranslateLanguagesApiInterfaceTest()
{
var result = this.provider
.GetRequiredService<ILanguagesApi>();
Assert.IsInstanceOf<GoogleTranslate.LanguagesApi>(result);
Assert.IsInstanceOf<HttpEngine<LanguagesRequest, LanguagesResponse>>(result);
}
} | 3,544 | 22,908 | using System;
using System.Net.Http;
using GoogleApi.Interfaces.Maps;
using GoogleApi.Interfaces.Maps.AerialView;
using GoogleApi.Interfaces.Maps.Geocode;
using GoogleApi.Interfaces.Maps.Roads;
using GoogleApi.Interfaces.Maps.Routes;
using GoogleApi.Interfaces.Places;
using GoogleApi.Interfaces.Places.Search;
using GoogleApi.Interfaces.Search;
using GoogleApi.Interfaces.Search.Video;
using GoogleApi.Interfaces.Translate;
using Microsoft.Extensions.DependencyInjection;
namespace GoogleApi.Extensions;
/// <summary>
/// Service Collection Extensions.
/// </summary>
public static class ServiceCollectionExtensions
{
/// <summary>
/// Adds the <see cref="HttpEngine{TRequest,TResponse}"/> and
/// related services to the <see cref="IServiceCollection"/> and configures a named <see cref="HttpClient"/>.
/// </summary>
/// <param name="services">The <see cref="IServiceCollection"/>.</param>
/// <param name="useHttpClientHandler">Whether to use the <see cref="HttpMessageHandler"/> on the <see cref="HttpClient"/>.</param>
/// <returns>The <see cref="IServiceCollection"/>..</returns>
public static IServiceCollection AddGoogleApiClients(this IServiceCollection services, bool useHttpClientHandler = true)
{
if (services == null)
throw new ArgumentNullException(nameof(services));
services
.AddHttpClient(nameof(GoogleApi), HttpClientFactory.ConfigureDefaultHttpClient);
services
.AddApi<IDirectionsApi, GoogleMaps.DirectionsApi>(useHttpClientHandler)
.AddApi<IDistanceMatrixApi, GoogleMaps.DistanceMatrixApi>(useHttpClientHandler)
.AddApi<IElevationApi, GoogleMaps.ElevationApi>(useHttpClientHandler)
.AddApi<IGeolocationApi, GoogleMaps.GeolocationApi>(useHttpClientHandler)
.AddApi<IAddressGeocodeApi, GoogleMaps.Geocode.AddressGeocodeApi>(useHttpClientHandler)
.AddApi<ILocationGeocodeApi, GoogleMaps.Geocode.LocationGeocodeApi>(useHttpClientHandler)
.AddApi<IPlaceGeocodeApi, GoogleMaps.Geocode.PlaceGeocodeApi>(useHttpClientHandler)
.AddApi<IPlusCodeGeocodeApi, GoogleMaps.Geocode.PlusCodeGeocodeApi>(useHttpClientHandler)
.AddApi<IAddressValidationApi, GoogleMaps.AddressValidationApi>(useHttpClientHandler)
.AddApi<ISnapToRoadApi, GoogleMaps.Roads.SnapToRoadApi>(useHttpClientHandler)
.AddApi<INearestRoadsApi, GoogleMaps.Roads.NearestRoadsApi>(useHttpClientHandler)
.AddApi<ISpeedLimitsApi, GoogleMaps.Roads.SpeedLimitsApi>(useHttpClientHandler)
.AddApi<IStreetViewApi, GoogleMaps.StreetViewApi>(useHttpClientHandler)
.AddApi<IStaticMapsApi, GoogleMaps.StaticMapsApi>(useHttpClientHandler)
.AddApi<ITimeZoneApi, GoogleMaps.TimeZoneApi>(useHttpClientHandler)
.AddApi<IRoutesDirectionsApi, GoogleMaps.Routes.RoutesDirectionsApi>(useHttpClientHandler)
.AddApi<IRoutesMatrixApi, GoogleMaps.Routes.RoutesMatrixApi>(useHttpClientHandler)
.AddApi<IAerialViewGetVideoApi, GoogleMaps.AerialView.AerialViewGetVideoApi>(useHttpClientHandler)
.AddApi<IAerialViewRenderVideoApi, GoogleMaps.AerialView.AerialViewRenderApi>(useHttpClientHandler);
services
.AddApi<IDetailsApi, GooglePlaces.DetailsApi>(useHttpClientHandler)
.AddApi<IPhotosApi, GooglePlaces.PhotosApi>(useHttpClientHandler)
.AddApi<IAutoCompleteApi, GooglePlaces.AutoCompleteApi>(useHttpClientHandler)
.AddApi<IQueryAutoCompleteApi, GooglePlaces.QueryAutoCompleteApi>(useHttpClientHandler)
.AddApi<IFindSearchApi, GooglePlaces.Search.FindSearchApi>(useHttpClientHandler)
.AddApi<INearBySearchApi, GooglePlaces.Search.NearBySearchApi>(useHttpClientHandler)
.AddApi<ITextSearchApi, GooglePlaces.Search.TextSearchApi>(useHttpClientHandler);
services
.AddApi<IWebSearchApi, GoogleSearch.WebSearchApi>(useHttpClientHandler)
.AddApi<IImageSearchApi, GoogleSearch.ImageSearchApi>(useHttpClientHandler)
.AddApi<IChannelsApi, GoogleSearch.VideoSearch.ChannelsApi>(useHttpClientHandler)
.AddApi<IPlaylistsApi, GoogleSearch.VideoSearch.PlaylistsApi>(useHttpClientHandler)
.AddApi<IVideosApi, GoogleSearch.VideoSearch.VideosApi>(useHttpClientHandler);
services
.AddApi<IDetectApi, GoogleTranslate.DetectApi>(useHttpClientHandler)
.AddApi<ILanguagesApi, GoogleTranslate.LanguagesApi>(useHttpClientHandler)
.AddApi<ITranslateApi, GoogleTranslate.TranslateApi>(useHttpClientHandler);
return services;
}
private static IServiceCollection AddApi<TService, TClient>(this IServiceCollection services, bool useHttpClientHandler = true)
where TClient : class, TService
where TService : class
{
var httpClientBuilder = services
.AddHttpClient<TClient>(HttpClientFactory.ConfigureDefaultHttpClient);
if (useHttpClientHandler)
{
httpClientBuilder
.ConfigurePrimaryHttpMessageHandler(() => HttpClientFactory.GetDefaultHttpClientHandler(HttpClientFactory.Proxy))
.SetHandlerLifetime(TimeSpan.FromMinutes(5));
}
services
.AddTransient<TService, TClient>();
return services;
}
} |
vivet | GoogleApi | F:\Projects\TestMap\Temp\GoogleApi\GoogleApi.sln | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\GoogleApi.UnitTests.csproj | F:\Projects\TestMap\Temp\GoogleApi\.tests\GoogleApi.UnitTests\Maps\Common\PlaceTests.cs | GoogleApi.UnitTests.Maps.Common | PlaceTests | [] | ['System', 'GoogleApi.Entities.Maps.Common', 'NUnit.Framework'] | NUnit | net462;net48;net481;net6.0;net8.0 | [TestFixture]
public class PlaceTests
{
[Test]
public void ConstructorTest()
{
var place = new Place("id");
Assert.AreEqual("id", place.Id);
}
[Test]
public void ConstructorWhenNullTest()
{
Assert.Throws<ArgumentNullException>(() =>
{
var address = new Place(null);
Assert.IsNotNull(address);
});
}
[Test]
public void ToStringTest()
{
var place = new Place("id");
var toString = place.ToString();
Assert.AreEqual(place.Id, toString);
}
[Test]
public void ToStringWhenPrefixTest()
{
var place = new Place("id");
const string PREFIX = "place_id";
var toString = place.ToString(PREFIX);
Assert.AreEqual($"{PREFIX}:{place.Id}", toString);
}
} | 126 | 993 | using GoogleApi.Entities.Places.AutoComplete.Request;
using GoogleApi.Entities.Places.AutoComplete.Response;
using GoogleApi.Entities.Places.Details.Request;
using GoogleApi.Entities.Places.Details.Response;
using GoogleApi.Entities.Places.Photos.Request;
using GoogleApi.Entities.Places.Photos.Response;
using GoogleApi.Entities.Places.QueryAutoComplete.Request;
using GoogleApi.Entities.Places.QueryAutoComplete.Response;
using GoogleApi.Entities.Places.Search.Find.Request;
using GoogleApi.Entities.Places.Search.Find.Response;
using GoogleApi.Entities.Places.Search.NearBy.Request;
using GoogleApi.Entities.Places.Search.NearBy.Response;
using GoogleApi.Entities.Places.Search.Text.Request;
using GoogleApi.Entities.Places.Search.Text.Response;
using System.Net.Http;
using GoogleApi.Interfaces.Places;
using GoogleApi.Interfaces.Places.Search;
namespace GoogleApi;
/// <summary>
/// Methods to access Google Places Api:
/// https://developers.google.com/places/web-service/intro
/// </summary>
public partial class GooglePlaces
{
/// <summary>
/// The Place Photo service, part of the Google Places API Web Service, is a read-only API that allows you to add high quality photographic content to your application.
/// The Place Photo service gives you access to the millions of photos stored in the Places and Google+ Local database. When you get place information using a Place Details request,
/// photo references will be returned for relevant photographic content. The Nearby Search and Text Search requests also return a single photo reference per place, when relevant.
/// Using the Photo service you can then access the referenced photos and resize the image to the optimal size for your application.
/// https://developers.google.com/places/web-service/photos
/// </summary>
public static PhotosApi Photos => new();
/// <summary>
/// Once you have a place_id from a Place Search, you can request more details about a particular establishment or point of interest by initiating a Place Details request.
/// A Place Details request returns more comprehensive information about the indicated place such as its complete address, phone number, user rating and reviews.
/// https://developers.google.com/places/web-service/details
/// </summary>
public static DetailsApi Details => new();
/// <summary>
/// The Place Autocomplete service is a web service that returns place predictions in response to an HTTP request.
/// The request specifies a textual search string and optional geographic bounds. The service can be used to provide autocomplete functionality for text-based geographic searches,
/// by returning places such as businesses, addresses and points of interest as a user types.
/// https://developers.google.com/places/web-service/autocomplete
/// </summary>
public static AutoCompleteApi AutoComplete => new();
/// <summary>
/// The Query Autocomplete service can be used to provide a query prediction for text-based geographic searches, by returning suggested queries as you type.
/// https://developers.google.com/places/web-service/query
/// </summary>
public static QueryAutoCompleteApi QueryAutoComplete => new();
/// <summary>
/// Search (nested class).
/// </summary>
public static partial class Search
{
/// <summary>
/// The Google Places API Find Search Service is a web service that returns information about a set of places based on an input.
/// A Find Place request takes a text input, and returns a place.
/// The text input can be any kind of Places data, for example, a name, address, or phone number.
/// https://developers.google.com/places/web-service/search#FindPlaceRequests
/// </summary>
public static FindSearchApi FindSearch => new();
/// <summary>
/// The Google Places API Text Search Service is a web service that returns information about a set of places based on a string — for example "pizza in New York" or "shoe stores near Ottawa".
/// The service responds with a list of places matching the text string and any location bias that has been set.
/// The search response will include a list of places, you can send a Place Details request for more information about any of the places in the response.
/// https://developers.google.com/places/web-service/search
/// </summary>
public static TextSearchApi TextSearch => new();
/// <summary>
/// A Nearby Search lets you search for places within a specified area.
/// You can refine your search request by supplying keywords or specifying the type of place you are searching for
/// https://developers.google.com/places/web-service/search
/// </summary>
public static NearBySearchApi NearBySearch => new();
}
}
public partial class GooglePlaces
{
/// <summary>
/// Auto Complete Api.
/// </summary>
public sealed class AutoCompleteApi : HttpEngine<PlacesAutoCompleteRequest, PlacesAutoCompleteResponse>, IAutoCompleteApi
{
/// <summary>
/// Constructor.
/// </summary>
public AutoCompleteApi()
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="httpClient">The <see cref="HttpClient"/>.</param>
public AutoCompleteApi(HttpClient httpClient) : base(httpClient)
{
}
}
/// <summary>
/// Details Api.
/// </summary>
public sealed class DetailsApi : HttpEngine<PlacesDetailsRequest, PlacesDetailsResponse>, IDetailsApi
{
/// <summary>
/// Constructor.
/// </summary>
public DetailsApi()
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="httpClient">The <see cref="HttpClient"/>.</param>
public DetailsApi(HttpClient httpClient)
: base(httpClient)
{
}
}
/// <summary>
/// Photos Api.
/// </summary>
public sealed class PhotosApi : HttpEngine<PlacesPhotosRequest, PlacesPhotosResponse>, IPhotosApi
{
/// <summary>
/// Constructor.
/// </summary>
public PhotosApi()
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="httpClient">The <see cref="HttpClient"/>.</param>
public PhotosApi(HttpClient httpClient)
: base(httpClient)
{
}
}
/// <summary>
/// Query Auto Complete Api.
/// </summary>
public sealed class QueryAutoCompleteApi : HttpEngine<PlacesQueryAutoCompleteRequest, PlacesQueryAutoCompleteResponse>, IQueryAutoCompleteApi
{
/// <summary>
/// Constructor.
/// </summary>
public QueryAutoCompleteApi()
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="httpClient">The <see cref="HttpClient"/>.</param>
public QueryAutoCompleteApi(HttpClient httpClient)
: base(httpClient)
{
}
}
public static partial class Search
{
/// <summary>
/// Find Search Api.
/// </summary>
public sealed class FindSearchApi : HttpEngine<PlacesFindSearchRequest, PlacesFindSearchResponse>, IFindSearchApi
{
/// <summary>
/// Constructor.
/// </summary>
public FindSearchApi()
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="httpClient">The <see cref="HttpClient"/>.</param>
public FindSearchApi(HttpClient httpClient)
: base(httpClient)
{
}
}
/// <summary>
/// Near By Search Api.
/// </summary>
public sealed class NearBySearchApi : HttpEngine<PlacesNearBySearchRequest, PlacesNearbySearchResponse>, INearBySearchApi
{
/// <summary>
/// Constructor.
/// </summary>
public NearBySearchApi()
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="httpClient">The <see cref="HttpClient"/>.</param>
public NearBySearchApi(HttpClient httpClient)
: base(httpClient)
{
}
}
/// <summary>
/// Text Search Api
/// </summary>
public sealed class TextSearchApi : HttpEngine<PlacesTextSearchRequest, PlacesTextSearchResponse>, ITextSearchApi
{
/// <summary>
/// Constructor.
/// </summary>
public TextSearchApi()
{
}
/// <summary>
/// Constructor.
/// </summary>
/// <param name="httpClient">The <see cref="HttpClient"/>.</param>
public TextSearchApi(HttpClient httpClient)
: base(httpClient)
{
}
}
}
}
|
jakubgarfield | Bonobo-Git-Server | F:\Projects\TestMap\Temp\Bonobo-Git-Server\Bonobo.Git.Server.sln | F:\Projects\TestMap\Temp\Bonobo-Git-Server\Bonobo.Git.Server.Test\Bonobo.Git.Server.Test.csproj | F:\Projects\TestMap\Temp\Bonobo-Git-Server\Bonobo.Git.Server.Test\MembershipTests\ADTests\ADBackendStoreTest.cs | Bonobo.Git.Server.Test.MembershipTests.ADTests
| ADBackendStoreTest | ['public Guid Id { get; set; }', 'public string Name { get; set; }', 'public string DisplayName { get { return Name; } }', 'private ADBackendStore<StorableClass> _store;', 'private string _testDirectory;'] | ['System', 'System.IO', 'System.Linq', 'Bonobo.Git.Server.Data', 'Microsoft.VisualStudio.TestTools.UnitTesting'] | Microsoft.VisualStudio.TestTools.UnitTesting | null | [TestClass]
public class ADBackendStoreTest
{
private ADBackendStore<StorableClass> _store;
private string _testDirectory;
[TestInitialize]
public void Initialise()
{
_testDirectory = Path.Combine(Path.GetTempPath(), "BonoboTestStore");
SafelyDeleteTestData();
_store = MakeStore();
}
[TestCleanup]
public void Cleanup()
{
SafelyDeleteTestData();
}
private void SafelyDeleteTestData()
{
if (Directory.Exists(_testDirectory))
{
try
{
Directory.Delete(_testDirectory, true);
}
catch
{
}
}
}
private static ADBackendStore<StorableClass> MakeStore()
{
return new ADBackendStore<StorableClass>(Path.GetTempPath(), "BonoboTestStore");
}
[TestMethod]
public void NewStoreIsEmpty()
{
Assert.AreEqual(0, _store.Count());
}
[TestMethod]
public void ItemCanBeAddedToStore()
{
_store.Add(new StorableClass());
Assert.AreEqual(1, _store.Count());
}
[TestMethod]
public void ItemCanBeAddedToStoreAndRetrieved()
{
_store.Add(new StorableClass { Name = "Hello" });
var retrieved = _store.Single();
Assert.AreEqual("Hello", retrieved.Name);
}
[TestMethod]
public void ItemCanBeAddedToStoreAndRetrievedViaDisk()
{
_store.Add(new StorableClass { Name = "Hello", Id = Guid.NewGuid() });
var loadStore = MakeStore();
var retrieved = loadStore.Single();
Assert.AreEqual("Hello", retrieved.Name);
}
[TestMethod]
public void ItemCanBeRetrievedByKey()
{
var id = Guid.NewGuid();
_store.Add(new StorableClass { Id = id, Name = "Hello" });
var retrieved = _store[id];
Assert.AreEqual(id, retrieved.Id);
}
[TestMethod]
public void ItemCanBeUpdated()
{
var id = Guid.NewGuid();
var item = new StorableClass { Id = id, Name = "Hello" };
_store.Add(item);
var updatedItem = new StorableClass { Id = id, Name = "Hello" };
updatedItem.Name = "Goodbye";
_store.Update(updatedItem);
var retrieved = _store[id];
Assert.AreEqual(id, retrieved.Id);
Assert.AreEqual("Goodbye", retrieved.Name);
}
[TestMethod]
public void ItemCanBeDeletedById()
{
var id1 = Guid.NewGuid();
var id2 = Guid.NewGuid();
var id3 = Guid.NewGuid();
_store.Add(new StorableClass { Id = id1, Name = "Hello1" });
_store.Add(new StorableClass { Id = id2, Name = "Hello2" });
_store.Add(new StorableClass { Id = id3, Name = "Hello3" });
Assert.IsTrue(_store.Remove(id2));
Assert.AreEqual(2, _store.Count());
Assert.AreEqual("Hello1", _store[id1].Name);
Assert.AreEqual("Hello3", _store[id3].Name);
}
[TestMethod]
public void ItemCanBeDeletedByItem()
{
var id1 = Guid.NewGuid();
var id2 = Guid.NewGuid();
var item1 = new StorableClass { Id = id1, Name = "Hello1" };
_store.Add(item1);
_store.Add(new StorableClass { Id = id2, Name = "Hello2" });
Assert.IsTrue(_store.Remove(item1));
Assert.AreEqual(1, _store.Count());
Assert.AreEqual("Hello2", _store[id2].Name);
}
[TestMethod]
public void AddOrUpdateWillAddItemIfItDoesntExist()
{
var item1 = new StorableClass { Id = Guid.NewGuid(), Name = "Hello1" };
_store.AddOrUpdate(item1);
Assert.AreEqual(1, _store.Count());
Assert.AreEqual("Hello1", _store.First().Name);
}
[TestMethod]
public void AddOrUpdateWillUpdateItemIfItDoesExist()
{
var item1 = new StorableClass { Id = Guid.NewGuid(), Name = "Hello" };
_store.Add(item1);
var changedItem = new StorableClass { Id = item1.Id, Name = "Goodbye" };
_store.AddOrUpdate(changedItem);
Assert.AreEqual(1, _store.Count());
Assert.AreEqual("Goodbye", _store.First().Name);
}
class StorableClass : INameProperty
{
public Guid Id { get; set; }
public string Name { get; set; }
public string DisplayName { get { return Name; } }
public StorableClass()
{
Id = Guid.NewGuid();
}
}
} | 204 | 5,288 | using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;
using System.Collections;
using System.Web.Hosting;
using Bonobo.Git.Server.Configuration;
using Bonobo.Git.Server.Helpers;
using Serilog;
namespace Bonobo.Git.Server.Data
{
public class ADBackendStore<T> : IEnumerable<T> where T : INameProperty
{
public T this[Guid key]
{
get
{
T result = default(T);
_content.TryGetValue(key, out result);
return result;
}
set
{
_content.AddOrUpdate(key, value, (k, v) => value);
}
}
private readonly string _storagePath;
private readonly ConcurrentDictionary<Guid, T> _content;
public ADBackendStore(string rootpath, string name)
{
_storagePath = Path.Combine(PathEncoder.GetRootPath(rootpath), name);
_content = LoadContent();
}
public bool Add(T item)
{
if (item.Id == Guid.Empty)
{
throw new ArgumentException("You must set the Id before adding an item");
}
return _content.TryAdd(item.Id, item) && Store(item);
}
public bool Remove(Guid key)
{
T removedItem;
return _content.TryRemove(key, out removedItem) && Delete(removedItem);
}
public bool Remove(T item)
{
return Remove(item.Id);
}
public void Update(T item)
{
if (_content.TryUpdate(item.Id, item, _content[item.Id]))
{
Store(item);
}
}
public void AddOrUpdate(T item)
{
_content.AddOrUpdate(item.Id, item, (k, v) => item);
Store(item);
}
public IEnumerator<T> GetEnumerator()
{
return _content.Values.GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
private bool Store(T item)
{
if (item.Id == Guid.Empty)
{
throw new ArgumentException("Item does not have a proper Id");
}
bool result = false;
try
{
string itemFilename = Path.Combine(_storagePath, GetItemFilename(item));
File.WriteAllText(itemFilename, JsonConvert.SerializeObject(item));
result = true;
}
catch(Exception ex)
{
Log.Error(ex, "AD: Store");
}
return result;
}
private bool Delete(T item)
{
bool result = false;
try
{
string itemFilename = Path.Combine(_storagePath, GetItemFilename(item));
File.Delete(itemFilename);
result = true;
}
catch (Exception ex)
{
Log.Error(ex, "AD: Delete");
}
return result;
}
private ConcurrentDictionary<Guid, T> LoadContent()
{
var result = new ConcurrentDictionary<Guid, T>();
if (!Directory.Exists(_storagePath))
{
Directory.CreateDirectory(_storagePath);
}
foreach (string filename in Directory.EnumerateFileSystemEntries(_storagePath, "*.json"))
{
try
{
T item = JsonConvert.DeserializeObject<T>(File.ReadAllText(filename));
result.TryAdd(item.Id, item);
}
catch (Exception ex)
{
Log.Error(ex, "AD: LoadContent");
}
}
return result;
}
private string GetItemFilename(T item)
{
return item.Id+".json";
}
}
} |
jakubgarfield | Bonobo-Git-Server | F:\Projects\TestMap\Temp\Bonobo-Git-Server\Bonobo.Git.Server.sln | F:\Projects\TestMap\Temp\Bonobo-Git-Server\Bonobo.Git.Server.Test\Bonobo.Git.Server.Test.csproj | F:\Projects\TestMap\Temp\Bonobo-Git-Server\Bonobo.Git.Server.Test\MembershipTests\EFTests\EFRoleProviderTest.cs | Bonobo.Git.Server.Test.MembershipTests.EFTests
| EFRoleProviderTest | ['protected IDatabaseTestConnection _connection;', 'protected IRoleProvider _provider;'] | ['System', 'System.Linq', 'Bonobo.Git.Server.Data', 'Bonobo.Git.Server.Data.Update', 'Bonobo.Git.Server.Security', 'Microsoft.VisualStudio.TestTools.UnitTesting'] | Microsoft.VisualStudio.TestTools.UnitTesting | null | public abstract class EFRoleProviderTest
{
protected IDatabaseTestConnection _connection;
protected IRoleProvider _provider;
[TestMethod]
public void UpdatesCanBeRunOnAlreadyUpdatedDatabase()
{
// Run all the updates again - this should be completely harmless
new AutomaticUpdater().RunWithContext(GetContext());
}
[TestMethod]
public void TestNewProviderHasJustAdminRole()
{
Assert.AreEqual("Administrator", _provider.GetAllRoles().Single());
}
[TestMethod]
public void TestAdminRoleHasOneMember()
{
var users = _provider.GetUsersInRole("Administrator");
CollectionAssert.AreEqual(new [] { GetAdminId() }, users);
}
[TestMethod]
public void TestAddingNonExistentUserToRoleIsSilentlyIgnored()
{
_provider.AddUserToRoles(Guid.NewGuid(), new[] { "Administrator" });
var users = _provider.GetUsersInRole("Administrator");
CollectionAssert.AreEqual(new[] { GetAdminId() }, users);
}
[TestMethod]
public void TestAddingRealUserIsSuccessful()
{
var userId = AddUserFred();
_provider.AddUserToRoles(userId, new[] { "Administrator" });
var users = _provider.GetUsersInRole("Administrator");
CollectionAssert.AreEqual(new[] { GetAdminId(), userId }.OrderBy(id => id).ToArray(), users.OrderBy(user => user).ToArray());
}
[TestMethod]
public void TestCreatingRole()
{
_provider.CreateRole("Programmer");
CollectionAssert.AreEqual(new[] { "Administrator", "Programmer" }, _provider.GetAllRoles().OrderBy(role => role).ToArray());
}
[TestMethod]
public void RemovingAUserFromARole()
{
_provider.CreateRole("Programmer");
var userId = AddUserFred();
_provider.AddUserToRoles(userId, new[] { "Administrator", "Programmer" });
_provider.RemoveUserFromRoles(userId, new [] { "Administrator" });
CollectionAssert.AreEqual(new[] { "Programmer" }, _provider.GetRolesForUser(userId));
}
[TestMethod]
public void TestAddingUserToMultipleRoles()
{
_provider.CreateRole("Programmer");
var fredId = AddUserFred();
_provider.AddUserToRoles(fredId, new[] { "Programmer", "Administrator" });
CollectionAssert.AreEqual(new[] { "Administrator", "Programmer" }, _provider.GetRolesForUser(fredId).OrderBy(role => role).ToArray());
CollectionAssert.AreEqual(new[] { GetAdminId(), fredId }.OrderBy(u => u).ToArray(), _provider.GetUsersInRole("Administrator").OrderBy(name => name).ToArray());
CollectionAssert.AreEqual(new[] { fredId }, _provider.GetUsersInRole("Programmer"));
}
[TestMethod]
[ExpectedException(typeof(InvalidOperationException))]
public void TestRoleCannotBeDeletedWhilePopulatedIfForbidden()
{
var userId = AddUserFred();
_provider.CreateRole("Programmer");
_provider.AddUserToRoles(userId, new[] { "Programmer" });
_provider.DeleteRole("Programmer", true);
}
[TestMethod]
public void RoleCanBeDeletedIfNoMembersPresent()
{
_provider.CreateRole("Programmer");
_provider.DeleteRole("Programmer", false);
Assert.AreEqual(1, _provider.GetAllRoles().Length);
}
[TestMethod]
public void UserInRoleDetectedCorrectly()
{
Assert.IsTrue(_provider.IsUserInRole(GetAdminId(), "Administrator"));
}
// I'm ignoring this for the moment because it fails with SqlServer and I need to investigate if we're supposed to have it at all
[TestMethod, Ignore]
public void TestRoleCanBeDeletedWhilePopulatedIfAllowed()
{
var userId = AddUserFred();
_provider.CreateRole("Programmer");
_provider.AddUserToRoles(userId, new[] { "Programmer" });
_provider.DeleteRole("Programmer", false);
Assert.AreEqual(1, _provider.GetAllRoles().Length);
}
Guid AddUserFred()
{
EFMembershipService memberService = new EFMembershipService { CreateContext = GetContext };
memberService.CreateUser("fred", "letmein", "Fred", "FredBlogs", "fred@aol");
return memberService.GetUserModel("fred").Id;
}
Guid GetAdminId()
{
EFMembershipService memberService = new EFMembershipService { CreateContext = GetContext };
return memberService.GetUserModel("Admin").Id;
}
private BonoboGitServerContext GetContext()
{
return _connection.GetContext();
}
protected void InitialiseTestObjects()
{
_provider = new EFRoleProvider {CreateContext = () => _connection.GetContext()};
new AutomaticUpdater().RunWithContext(_connection.GetContext());
}
} | 1,033 | 6,325 | using Bonobo.Git.Server.Data;
using System;
using System.Linq;
using Unity;
namespace Bonobo.Git.Server.Security
{
public class EFRoleProvider : IRoleProvider
{
[Dependency]
public Func<BonoboGitServerContext> CreateContext { get; set; }
public void AddUserToRoles(Guid userId, string[] roleNames)
{
AddUsersToRoles(new Guid[] { userId }, roleNames);
}
public void AddUsersToRoles(Guid[] userIds, string[] roleNames)
{
using (var database = CreateContext())
{
var roles = database.Roles.Where(i => roleNames.Contains(i.Name)).ToList();
var users = database.Users.Where(i => userIds.Contains(i.Id)).ToList();
foreach (var role in roles)
{
foreach (var user in users)
{
role.Users.Add(user);
}
}
database.SaveChanges();
}
}
public void CreateRole(string roleName)
{
using (var database = CreateContext())
{
database.Roles.Add(new Role
{
Name = roleName,
});
database.SaveChanges();
}
}
public bool DeleteRole(string roleName, bool throwOnPopulatedRole)
{
using (var database = CreateContext())
{
var role = database.Roles.FirstOrDefault(i => i.Name == roleName);
if (role != null)
{
if (throwOnPopulatedRole)
{
if (role.Users.Count > 0)
{
throw new InvalidOperationException("Can't delete role with members.");
}
}
database.Roles.Remove(role);
database.SaveChanges();
return true;
}
return false;
}
}
public string[] FindUsersInRole(string roleName, string usernameToMatch)
{
using (var database = CreateContext())
{
var users = database.Users
.Where(us => us.Username.Contains(usernameToMatch) && us.Roles.Any(role => role.Name == roleName))
.Select(us => us.Username)
.ToArray();
return users;
}
}
public string[] GetAllRoles()
{
using (var database = CreateContext())
{
return database.Roles.Select(i => i.Name).ToArray();
}
}
public string[] GetRolesForUser(Guid userId)
{
using (var database = CreateContext())
{
var roles = database.Roles
.Where(role => role.Users.Any(us => us.Id == userId))
.Select(role => role.Name)
.ToArray();
return roles;
}
}
public Guid[] GetUsersInRole(string roleName)
{
using (var database = CreateContext())
{
var users = database.Users
.Where(us => us.Roles.Any(role => role.Name == roleName))
.Select(us => us.Id)
.ToArray();
return users;
}
}
public bool IsUserInRole(Guid userId, string roleName)
{
using (var database = CreateContext())
{
return database.Roles.Any(role => role.Name == roleName && role.Users.Any(us => us.Id == userId));
}
}
public void RemoveUserFromRoles(Guid userId, string[] roleNames)
{
RemoveUsersFromRoles(new[] { userId }, roleNames);
}
public void RemoveUsersFromRoles(Guid[] userIds, string[] roleNames)
{
using (var database = CreateContext())
{
var roles = database.Roles.Where(i => roleNames.Contains(i.Name)).ToList();
var users = database.Users.Where(i => userIds.Contains(i.Id)).ToList();
foreach (var role in roles)
{
foreach (var user in users)
{
role.Users.Remove(user);
}
}
database.SaveChanges();
}
}
public bool RoleExists(string roleName)
{
using (var database = CreateContext())
{
return database.Roles.Any(i => i.Name == roleName);
}
}
}
} |
End of preview. Expand
in Dataset Viewer.
Dataset Card for CSharpTestClasses
Mapping of CSharp test classes to source code classes using TestMap
Dataset Details
Dataset Description
Using TestMap, the dataset consists of test code classes and source code classes (classes being tested) from open-source CSharp repositories on GitHub. We also collect additional contextual information.
Uses
The primary intent for this dataset is proof-of-concept for the tool, TestMap.
We also can see this dataset being used to finetune models for producing software tests in CSharp.
- Downloads last month
- 38