public void HaveHeroField() { // Given var droidRepository = new Mock <DroidRepository>(); // When var starWarsQuery = new StarWarsQuery(droidRepository.Object); // Then Assert.NotNull(starWarsQuery); Assert.True(starWarsQuery.HasField("hero")); }
public void HaveHeroField() { // Given var trilogyHeroes = new Mock <ITrilogyHeroes>(); var droidRepository = new Mock <IDroidRepository>(); var humanRepository = new Mock <IHumanRepository>(); var mapper = new Mock <IMapper>(); // When var starWarsQuery = new StarWarsQuery(trilogyHeroes.Object, droidRepository.Object, humanRepository.Object, mapper.Object); // Then Assert.NotNull(starWarsQuery); Assert.True(starWarsQuery.HasField("hero")); }
public StarWarsSchema() { Query = new StarWarsQuery(); }
public GraphQLController(StarWarsQuery starWarsQuery) { _starWarsQuery = starWarsQuery; }
public StarWarsSchema() { Query = new StarWarsQuery(); }