Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AutoFaker"/> class.
        /// </summary>
        public AutoFaker(Action <IAutoFakerConfigurationBuilder>?configure = null)
        {
            AutoFakerConfiguration configuration = new();

            configure?.Invoke(configuration);
            _fakeFactory = new FakeFactoryCachingDecorator(new FakeFactory());
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="FakeParameterResolver"/> class.
 /// </summary>
 /// <param name="next">The next value resolver in the chain.</param>
 /// <param name="fakeFactory">The fake factory.</param>
 public FakeParameterResolver(IParameterResolver next, IFakeFactory fakeFactory) : base(next)
 {
     _fakeFactory = fakeFactory;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AutoFaker"/> class. This constructor is
 /// intended for testing.
 /// </summary>
 internal AutoFaker(IFakeFactory fakeFactory)
 {
     _fakeFactory = fakeFactory;
 }