public StarshipsServiceTests() { _mocker = new AutoMocker(); _starshipsRepository = _mocker.GetMock <IStarshipsRepository>(); _mgltCalculatorService = _mocker.GetMock <IMGLTCalculatorService>(); _starshipService = _mocker.CreateInstance <StarshipsService>(); }
public IntegrationTestsFixture() { var serviceCollection = new ServiceCollection(); startup = new StarwarsStartup(); startup.Config(serviceCollection); var serviceProvider = serviceCollection.BuildServiceProvider(); _starshipService = serviceProvider.GetService <IStarshipsService>(); }
public StarwarsTests(IntegrationTestsFixture textFixture) { _test_Fixture = textFixture; _starshipService = _test_Fixture._starshipService; }
public StarshipController(IStarshipsService starshipsService) { _starshipsService = starshipsService; }
public StarshipsController(IStarshipsService starshipsService, IPlayersService playersService, UserManager <ApplicationUser> userManager) { this.starshipsService = starshipsService; this.playersService = playersService; this.userManager = userManager; }