예제 #1
0
 public AutoFillAction(IActionProvider actionProvider, IEnumerable <IWebElement> elements, object seedWith)
 {
     _actionProvider   = actionProvider;
     _elements         = elements;
     _seedWith         = seedWith;
     _isSimpleSeed     = IsSeedSimple();
     _constraintHelper = _actionProvider.UsingFixture.Data.Locate <IConstraintHelper>();
 }
예제 #2
0
 public TypePopulator(IFixtureConfiguration configuration,
                      IConstraintHelper helper,
                      ITypePropertySelector propertySelector,
                      IPropertySetter setter,
                      ITypeFieldSelector fieldSelector,
                      IFieldSetter fieldSetter)
 {
     _configuration    = configuration;
     _helper           = helper;
     _propertySelector = propertySelector;
     _setter           = setter;
     _fieldSelector    = fieldSelector;
     _fieldSetter      = fieldSetter;
 }
예제 #3
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="dataGenerator"></param>
 /// <param name="constraintHelper"></param>
 public ShortConvention(IRandomDataGeneratorService dataGenerator, IConstraintHelper constraintHelper)
 {
     _dataGenerator    = dataGenerator;
     _constraintHelper = constraintHelper;
 }
 public SeleniumTypePropertySelector(IConstraintHelper helper) : base(helper)
 {
 }
예제 #5
0
 /// <summary>
 /// DEfault constructor
 /// </summary>
 /// <param name="dataGenerator"></param>
 /// <param name="constraintHelper"></param>
 public EnumConvention(IRandomDataGeneratorService dataGenerator, IConstraintHelper constraintHelper)
 {
     _dataGenerator = dataGenerator;
 }
예제 #6
0
 public TypeCreator(IFixtureConfiguration configuration, IConstructorSelector selector, IConstraintHelper constraintHelper)
 {
     _configuration    = configuration;
     _selector         = selector;
     _constraintHelper = constraintHelper;
 }
예제 #7
0
 public TypeFieldSelector(IConstraintHelper helper)
 {
     _helper = helper;
 }
예제 #8
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="dataGenerator"></param>
 /// <param name="helper"></param>
 protected BaseNamedConvention(IRandomDataGeneratorService dataGenerator, IConstraintHelper helper)
 {
     _dataGenerator = dataGenerator;
     _helper        = helper;
 }
예제 #9
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="constraintHelper"></param>
 public UriConvention(IConstraintHelper constraintHelper)
 {
     _constraintHelper = constraintHelper;
 }
예제 #10
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="dataGenerator"></param>
 /// <param name="helper"></param>
 public StringNamedConvention(IRandomDataGeneratorService dataGenerator, IConstraintHelper helper) : base(dataGenerator, helper)
 {
 }
예제 #11
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="dataGenerator"></param>
 /// <param name="constraintHelper"></param>
 public DateTimeConvention(IRandomDataGeneratorService dataGenerator, IConstraintHelper constraintHelper)
 {
     _dataGenerator = dataGenerator;
     _helper        = constraintHelper;
 }
예제 #12
0
 public TypePropertySelector(IFixtureConfiguration configuration, IConstraintHelper helper)
 {
     _configuration = configuration;
     _helper        = helper;
 }
예제 #13
0
        private T GenerateClosedFake <T>(DataRequest request, IConstraintHelper helper)
        {
            Action <IFakeOptions <T> > options = helper.GetValue <Action <IFakeOptions <T> > >(request.Constraints, null, "builderOptions");

            return(options != null?A.Fake(options) : A.Fake <T>());
        }
예제 #14
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="constraintHelper"></param>
 public DelegateConvention(IConstraintHelper constraintHelper)
 {
     _constraintHelper = constraintHelper;
 }