当前位置: 首页>>代码示例>>C#>>正文


C# Behavior.Save方法代码示例

本文整理汇总了C#中Behavior.Save方法的典型用法代码示例。如果您正苦于以下问题:C# Behavior.Save方法的具体用法?C# Behavior.Save怎么用?C# Behavior.Save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Behavior的用法示例。


在下文中一共展示了Behavior.Save方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PlusMazeBehavioralTestTypeAndBehaviors

        public static void PlusMazeBehavioralTestTypeAndBehaviors()
        {
            var behavioralTestType = new BehavioralTestType { Name = "EPM", Description = "Elevated Plus Maze" };
            behavioralTestType.Save();

            var behavior = new Behavior
            {
                Name = "North Entry",
                DefaultKeyStroke = "1",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "South Entry",
                DefaultKeyStroke = "2",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "West Entry",
                DefaultKeyStroke = "3",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "East Entry",
                DefaultKeyStroke = "4",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Center Entry",
                DefaultKeyStroke = "5",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Incomplete Closed Entry",
                DefaultKeyStroke = "6",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.Instant
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Incomplete Open Entry",
                DefaultKeyStroke = "7",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.Instant
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Incomplete Center Entry",
                DefaultKeyStroke = "8",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.Instant
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Protected Head Dip",
                DefaultKeyStroke = "9",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.Instant
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Unprotected Head Dip",
                DefaultKeyStroke = "0",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.Instant
            };
            behavior.Save();
        }
开发者ID:kinoscope,项目名称:kinoscope,代码行数:95,代码来源:SeedData.cs

示例2: _FstBehavioralTestTypeAndBehaviors

        private static void _FstBehavioralTestTypeAndBehaviors()
        {
            var behavioralTestType = new BehavioralTestType { Name = "FST", Description = "Forced Swimmend Test" };
            behavioralTestType.Save();

            var behavior = new Behavior
            {
                Name = "Climbing",
                DefaultKeyStroke = "1",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Swimming",
                DefaultKeyStroke = "2",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Floating",
                DefaultKeyStroke = "3",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Diving",
                DefaultKeyStroke = "4",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Head Swinging",
                DefaultKeyStroke = "5",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.Instant
            };
            behavior.Save();
        }
开发者ID:kinoscope,项目名称:kinoscope,代码行数:50,代码来源:SeedData.cs

示例3: ObjectRecognitionBehavioralTestTypeAndBehaviors

        public static void ObjectRecognitionBehavioralTestTypeAndBehaviors()
        {
            var behavioralTestType = new BehavioralTestType { Name = "Object Recognition", Description = "Object Recognition" };
            behavioralTestType.Save();

            var behavior = new Behavior
            {
                Name = "Object A",
                DefaultKeyStroke = "1",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "Object B",
                DefaultKeyStroke = "2",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();

            behavior = new Behavior
            {
                Name = "General Area",
                DefaultKeyStroke = "3",
                BehavioralTestType = behavioralTestType,
                Type = Behavior.BehaviorType.State
            };
            behavior.Save();
        }
开发者ID:kinoscope,项目名称:kinoscope,代码行数:32,代码来源:SeedData.cs


注:本文中的Behavior.Save方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。