示例#1
0
    public static FixtureWrapper CreateUnconfiguredInstance()
    {
        var fixture        = new Fixture(new EngineWithReplacedQuery());
        var fixtureWrapper = new FixtureWrapper(fixture);

        return(fixtureWrapper);
    }
    private static ValueGenerator CreateValueGenerator()
    {
        var fixtureWrapper       = FixtureWrapper.CreateUnconfiguredInstance();
        var fixtureConfiguration = new AutoFixtureConfiguration();

        fixtureConfiguration.ApplyTo(fixtureWrapper);

        var valueGenerator = new ValueGenerator(fixtureWrapper);

        return(valueGenerator);
    }
示例#3
0
    public static FixtureWrapper InstanceForEmptyCollections()
    {
        var autoFixture = new Fixture {
            RepeatCount = 0
        };

        autoFixture.Customizations.Add(new EmptyImmutableCollectionRelay());
        var instanceForEmptyCollections = new FixtureWrapper(autoFixture);

        return(instanceForEmptyCollections);
    }
示例#4
0
        public void ApplyTo(FixtureWrapper fixtureWrapper)
        {
            var wrapper = fixtureWrapper;

            wrapper.Register(() => _types.Next());
            wrapper.Register(() => _methodList.Next());
            wrapper.Register(() => new Exception(wrapper.Create <string>(), new Exception(wrapper.Create <string>())));
            wrapper.Register(
                () =>
                new IPAddress(new[]
                              { wrapper.Create <byte>(), wrapper.Create <byte>(), wrapper.Create <byte>(), wrapper.Create <byte>() }));
        }
 public EmptyCollectionInstantiation()
 {
     _fixtureWrapper = FixtureWrapper.InstanceForEmptyCollections();
 }
示例#6
0
 public EsporteTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
 }
 public TimeEntryTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
 }
 public PerfilServicesTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
     _perfilService  = _fixtureWrapper.ObterPerfilService();
 }
 public SolicitacaoTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
 }
示例#10
0
 public ValueGenerator(FixtureWrapper fixtureWrapper)
 {
     _generator = fixtureWrapper;
 }
示例#11
0
 public LocacaoTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
 }
 public HabilidadeUsuarioTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
 }
示例#13
0
 public HourPointsTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
 }
 public PerfilHabilidadesTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
 }
 public HourPointConfigurationsTests(FixtureWrapper fixtureWrapper)
 {
     _fixtureWrapper = fixtureWrapper;
 }