Exemplo n.º 1
0
 public void GivenACharacter(string amount)
 {
     if (!_testDataUtil.Contains <Origin>())
     {
         _testDataUtil.AddOrigin();
     }
     if (_testDataUtil.Contains <Job>())
     {
         for (var i = 0; i < StepArgumentUtil.ParseQuantity(amount); i++)
         {
             _testDataUtil.AddCharacter(_scenarioContext.GetUserId(), c =>
             {
                 c.Jobs = new List <CharacterJob>
                 {
                     new CharacterJob {
                         JobId = _testDataUtil.GetLast <Job>().Id
                     }
                 };
             });
         }
     }
     else
     {
         for (var i = 0; i < StepArgumentUtil.ParseQuantity(amount); i++)
         {
             _testDataUtil.AddCharacter(_scenarioContext.GetUserId());
         }
     }
 }
Exemplo n.º 2
0
 public void GivenXSkills(string amount)
 {
     for (var i = 0; i < StepArgumentUtil.ParseQuantity(amount); i++)
     {
         _testDataUtil.AddSkill();
     }
 }
Exemplo n.º 3
0
 public void GivenXMapWithAMarker(string amount)
 {
     for (var i = 0; i < StepArgumentUtil.ParseQuantity(amount); i++)
     {
         _testDataUtil.AddMap(x =>
         {
             x.Layers = new[]
             {
                 new MapLayer
                 {
                     Name    = "some-layer-name",
                     Source  = "official",
                     IsGm    = true,
                     Markers = new List <MapMarker>
                     {
                         new MapMarker
                         {
                             Name        = "some-marker-name",
                             Description = "some-marker-description",
                             MarkerInfo  = "{}",
                             Type        = "point",
                             Links       = new List <MapMarkerLink>()
                         }
                     }
                 }
             };
         });
     }
 }
Exemplo n.º 4
0
 public void GivenSpecialities(string amount)
 {
     for (var i = 0; i < StepArgumentUtil.ParseQuantity(amount); i++)
     {
         _testDataUtil.AddSpeciality();
     }
 }
Exemplo n.º 5
0
 public void GivenAnEffectSubCategory(string amount)
 {
     if (!_testDataUtil.Contains <EffectType>())
     {
         _testDataUtil.AddEffectType();
     }
     for (var i = 0; i < StepArgumentUtil.ParseQuantity(amount); i++)
     {
         _testDataUtil.AddEffectSubCategory();
     }
 }
Exemplo n.º 6
0
 public void GivenXMapWithALayer(string amount)
 {
     for (var i = 0; i < StepArgumentUtil.ParseQuantity(amount); i++)
     {
         _testDataUtil.AddMap(x =>
         {
             x.Layers = new[]
             {
                 new MapLayer
                 {
                     Name   = "some-layer-name",
                     Source = "official"
                 }
             };
         });
     }
 }