Exemplo n.º 1
0
 public OrderTests()
 {
     fixture = new AutoFixture.Fixture();
     fixture.Customize(new AutoMoqCustomization {
         ConfigureMembers = true
     });
 }
Exemplo n.º 2
0
        public StandingsMapperTests()
        {
            var autoFixture = new AutoFixture.Fixture();

            autoFixture.Customize <Standing>(x => x.With(s => s.Stage, "REGULAR_SEASON"));
            _source = autoFixture.Create <StandingResponse>();

            var rnd   = new Random();
            var index = rnd.Next(_source.Standings.Length);

            _source.Standings[index].Type = "TOTAL";

            var mapper = new StandingsMapper();

            _result = mapper.MapAsync(_source).Result;
        }