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); }
public static FixtureWrapper InstanceForEmptyCollections() { var autoFixture = new Fixture { RepeatCount = 0 }; autoFixture.Customizations.Add(new EmptyImmutableCollectionRelay()); var instanceForEmptyCollections = new FixtureWrapper(autoFixture); return(instanceForEmptyCollections); }
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(); }
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; }
public ValueGenerator(FixtureWrapper fixtureWrapper) { _generator = fixtureWrapper; }
public LocacaoTests(FixtureWrapper fixtureWrapper) { _fixtureWrapper = fixtureWrapper; }
public HabilidadeUsuarioTests(FixtureWrapper fixtureWrapper) { _fixtureWrapper = fixtureWrapper; }
public HourPointsTests(FixtureWrapper fixtureWrapper) { _fixtureWrapper = fixtureWrapper; }
public PerfilHabilidadesTests(FixtureWrapper fixtureWrapper) { _fixtureWrapper = fixtureWrapper; }
public HourPointConfigurationsTests(FixtureWrapper fixtureWrapper) { _fixtureWrapper = fixtureWrapper; }