/// <summary> /// Generate the data and return it /// </summary> /// <param name="parameter">Extra parameters given in the attribute, not in use but required due to inheritance</param> /// <returns>The generated data</returns> public IEnumerable GetData(IParameterInfo parameter) { if (amountToGenerate <= 1) { return(new[] { fakeDataGenerator.Generate() }); } List <Role> roles = fakeDataGenerator.GenerateRange(amountToGenerate).ToList(); return(new[] { roles }); }
/// <summary> /// Generate the data and return it /// </summary> /// <param name="parameter">Extra parameters given in the attribute, not in use but required due to inheritance</param> /// <returns>The generated data</returns> public IEnumerable GetData(IParameterInfo parameter) { if (amountToGenerate <= 1) { return(new[] { fakeDataGenerator.Generate() }); } List <EmbeddedProject> projects = fakeDataGenerator.GenerateRange(amountToGenerate).ToList(); return(new[] { projects }); }
/// <summary> /// Generate the data and return it /// </summary> /// <param name="parameter">Extra parameters given in the attribute, not in use but required due to inheritance</param> /// <returns>The generated data</returns> public IEnumerable GetData(IParameterInfo parameter) { if (amountToGenerate <= 1) { return(new[] { fakeDataGenerator.Generate() }); } List <Collaborator> collaborators = fakeDataGenerator.GenerateRange(amountToGenerate).ToList(); return(new[] { collaborators }); }
/// <summary> /// Generate the data and return it. /// </summary> /// <param name="parameter">Extra parameters given in the attribute, not in use but required due to inheritance.</param> /// <returns>The generated data.</returns> public IEnumerable GetData(IParameterInfo parameter) { if (amountToGenerate <= 1) { return(new[] { fakeDataGenerator.Generate() }); } List <GitlabDataSourceUserResourceResult> projects = fakeDataGenerator.GenerateRange(amountToGenerate) .ToList(); return(new [] { projects }); }
/// <summary> /// Generate the data and return it /// </summary> /// <param name="parameter">Extra parameters given in the attribute, not in use but required due to inheritance</param> /// <returns>The generated data</returns> public IEnumerable GetData(IParameterInfo parameter) { if (amountToGenerate < 1) { return new[] { fakeDataGenerator.Generate() } } ; return(new[] { fakeDataGenerator.GenerateRange(amountToGenerate) }); } }
/// <summary> /// This method generates the data and returns it. /// </summary> /// <param name="parameter">Extra parameter given in the attribute, not in use but required due to inheritance.</param> /// <returns>This method returns the generated data.</returns> public IEnumerable GetData(IParameterInfo parameter) { if (amountToGenerate <= 1) { return(new[] { fakeDataGenerator.Generate() }); } List <CallToActionOption> options = fakeDataGenerator.GenerateRange(amountToGenerate) .ToList(); return(new[] { options }); }