Exemplo n.º 1
0
        public static IFixture CreateFixture()
        {
            var fixture = new Fixture();

            fixture.Customize(new AutoMoqCustomization
            {
                ConfigureMembers  = true,
                GenerateDelegates = true
            });

            fixture.AddMockHttp();

            fixture.Inject(new JsonSerializerSettings());

            fixture.Inject(new HttpRestClientOptions());

            fixture.Inject(new ServiceCollection());

            return(fixture);
        }