public void ReplaceVocabulary_ShouldReturnSubCockTortureLevel()
        {
            var testStrings = new List <Tuple <string, string> >
            {
                Tuple.Create("#Session.Sub.CockTortureLevel", "3"),
                Tuple.Create(" #Session.Sub.CockTortureLevel ", " 3 "),
                Tuple.Create("Torture #Session.Sub.CockTortureLevel Me", "Torture 3 Me"),
            };

            var session = new Session(new DommePersonality(), new SubPersonality());

            session.Sub.CockTortureLevel = TortureLevel.Create(3).Value;

            foreach (var testString in testStrings)
            {
                var actual = _service.ReplaceVocabulary(session, testString.Item1);

                Assert.AreEqual(testString.Item2, actual, testString.Item1);
            }
        }
示例#2
0
 /// <summary>
 /// Create a default settings object
 /// </summary>
 /// <returns></returns>
 public Settings CreateDefaultSettings()
 {
     return(new Settings
     {
         DommePersonality = "dev-wicked-tease",
         Domme = new DommeSettings
         {
             AvatarImageFile = string.Empty,
             Name = "Domme Name",
             BirthDate = new DateTime(DateTime.Now.Year - 21, 1, 1),
             AllowsOrgasms = AllowsOrgasms.Sometimes,
             RuinsOrgasms = RuinsOrgasms.Sometimes,
             OrgasmReleaseDate = DateTime.MinValue,
             OrgasmsPerTimePeriod = 3,
             OrgasmsTimePeriodDays = 180,
             CapitalizeSelfPronouns = false,
             ApathyLevel = ApathyLevel.Moderate,
             DominationLevel = DomLevel.Tease,
             DoesDenialEndTease = true,
             DoesOrgasmEndTease = true,
             CupSize = CupSize.CCup,
             EyeColor = "green",
             HairColor = "blonde",
             HairLength = "long",
             HasFreckles = false,
             HasTattoos = false,
             IsVulgar = false,
             IsSupremacist = false,
             IsOrgasmChanceLocked = false,
             PubicHair = "shaved",
             UseLowercase = false,
             UseNoApostrophes = false,
             UseNoCommas = false,
             UseNoPeriods = false,
             PetNames = new List <string>
             {
                 "stroker",
                 "stroker",
                 "stroker",
                 "stroker",
                 "stroker",
                 "stroker",
                 "stroker",
                 "stroker",
             },
             BadMoodThreshold = 3,
             GoodMoodThreshold = 8,
             AveragePenisMinimum = 6,
             AveragePenisMaximum = 8,
             AverageAgeSelfMinimum = 28,
             AverageAgeSelfMaximum = 49,
             AverageAgeSubMinimum = 28,
             AverageAgeSubMaximum = 49,
             Honorific = "Mistress",
             ChatColor = "#FF8020",
             GlitterContactName = "Domme Name",
             GlitterPostFrequency = 9,
             GlitterResponseFrequency = 9,
             GlitterMode = GlitterMode.On,
             IsGlitterDailyModuleEnabled = true,
             IsGlitterEgotistModuleEnabled = true,
             IsGlitterTeaseModuleEnabled = true,
             IsGlitterTriviaModuleEnabled = true,
         },
         General = new GeneralSettings
         {
             CanDommeDeleteFiles = false,
             IsTimeStampEnabled = true,
             ShowChatUserNames = true,
             DoesDommeTypeInstantly = false,
             IsWebTeaseModeEnabled = false,
         },
         Sub = new SubSettings
         {
             BirthDate = new DateTime(DateTime.Now.Year - 28, 1, 1),
             AvatarImageFile = string.Empty,
             Name = "sub name",
             Safeword = "red",
             CanInterruptLongEdge = true,
             AllowLongEdgeInterrupts = true,
             AllowLongEdgeTaunts = false,
             CallBallsPussy = false,
             CallCockAClit = false,
             HasChastityDevice = false,
             DoesChastityDeviceContainSpikes = false,
             DoesChastityDeviceRequirePiercing = false,
             ExtremeEdgeHoldMinimum = 120,
             ExtremeEdgeHoldMaximum = 180,
             CockAndBallTortureLevel = TortureLevel.Create(3).Value,
             IsBallTortureEnabled = false,
             IsCockTortureEnabled = false,
             IsSubCircumcised = false,
             HoldEdgeSecondsMaximum = 60,
             HoldEdgeSecondsMinimum = 10,
             IsSubFemale = false,
             IsSubPierced = false,
             LongEdgeHoldMaximum = 120,
             LongEdgeHoldMinimum = 60,
             LongEdgeThreshold = 45,
             UseAverageEdgeTimeAsThreshold = false,
             Greetings = new List <string> {
                 "hello", "hi", "hey", "heya", "good morning", "good afternoon", "good evening"
             },
             YesPhrases = new List <string> {
                 "yes", "yeah", "yep", "yup", "sure", "of course", "absolutely", "you know it", "definitely"
             },
             NoPhrases = new List <string> {
                 "no", "nah", "nope", "not"
             },
             CockLength = 6,
             EyeColor = "brown",
             HairColor = "brown",
         },
         Range = new RangeSettings
         {
             DoesDommeDecideOrgasmRange = true,
             DoesDommeDecideRuinRange = true,
             AllowOrgasmRarelyPercent = AllowsOrgasms.Rarely,
             AllowOrgasmSometimesPercent = AllowsOrgasms.Sometimes,
             AllowOrgasmOftenPercent = AllowsOrgasms.Often,
             RuinOrgasmRarelyPercent = RuinsOrgasms.Rarely,
             RuinOrgasmSometimesPercent = RuinsOrgasms.Sometimes,
             RuinOrgasmOftenPercent = RuinsOrgasms.Often,
             IsTauntCycleDommeDetermined = false,
             IsTeaseLengthDommeDetermined = false,
             TeaseLengthMinutesMaximum = 60,
             TeaseLengthMinutesMinimum = 15,
             TauntCycleMinutesMaximum = 5,
             TauntCycleMinutesMinimum = 1,
             CensorshipBarOnMinimum = 20,
             CensorshipBarOnMaximum = 60,
             CensorshipBarOffMinimum = 10,
             CensorshipBarOffMaximum = 30,
             VideoTauntFrequency = 5,
             RedLightMinimumSeconds = 5,
             RedLightMaximumSeconds = 30,
             GreenLightMinimumSeconds = 10,
             GreenLightMaximumSeconds = 60,
         },
         Misc = new MiscSettings
         {
             IsOffline = false,
             IsInChastity = false,
         },
         Apps = new AppSettings
         {
             LazySub = new LazySubSettings
             {
                 CustomTextOne = "Custom One",
                 CustomTextTwo = "Custom Two",
                 CustomTextThree = "Custom Three",
                 CustomTextFour = "Custom Four",
                 CustomTextFive = "Custom Five",
                 AreShortcutsEnabled = false,
                 GreetingShortCut = "hi",
                 LetMeCumShortCut = "c",
                 NoShortCut = "n",
                 OnTheEdgeShortCut = "e",
                 SafewordShortCut = "red",
                 SlowDownShortCut = "sd",
                 SpeedUpShortCut = "su",
                 StopShortCut = "s",
                 StrokeShortCut = "stroke",
                 YesShortCut = "y",
             },
             Glitter = new GlitterSettings
             {
                 Contact1 = new DommeSettings
                 {
                     Name = "Contact 1",
                     GlitterContactName = "Contact 1",
                     IsAngry = true,
                     IsCruel = true,
                     IsGlitterCustom1ModuleEnabled = true,
                     GlitterMode = GlitterMode.On,
                     ChatColor = "#80FF00",
                     GlitterResponseFrequency = 5,
                 },
                 Contact2 = new DommeSettings
                 {
                     Name = "Contact 2",
                     GlitterContactName = "Contact 2",
                     IsBratty = true,
                     IsGlitterCustom2ModuleEnabled = true,
                     IsDegrading = true,
                     GlitterMode = GlitterMode.On,
                     ChatColor = "#FF80FF",
                     GlitterResponseFrequency = 5,
                 },
                 Contact3 = new DommeSettings
                 {
                     Name = "Contact 3",
                     GlitterContactName = "Contact 3",
                     IsCaring = true,
                     IsCondescending = true,
                     IsGlitterCustom3ModuleEnabled = true,
                     GlitterMode = GlitterMode.On,
                     ChatColor = "#8080FF",
                     GlitterResponseFrequency = 5,
                 },
             }
         },
     });
 }