Exemple #1
0
        public GameRepositoryTests(FixtureDI fixture)
        {
            var serviceProvider = fixture.ServiceProvider;

            _gameRepository = serviceProvider.GetService <IRepository <Game> >();
        }
Exemple #2
0
        public GameServiceTests(FixtureDI fixture)
        {
            var serviceProvider = fixture.ServiceProvider;

            _gameService = serviceProvider.GetService <IGameService>();
        }