public async Task GetDestinationId_Should_Throw_If_No_Such_Destination_Exists(string destinationName) { using var context = await GetDatabase(); var dungeonService = new DungeonService(context, null, null); Assert.Throws <ArgumentException>(() => dungeonService.GetDestinationId(destinationName)); }
public async Task GetDestinationId_Should_Return_Correct_Id() { using var context = await GetDatabase(); var mapper = this.GetMapper(); var characterService = new CharacterService(context, mapper); var dungeonService = new DungeonService(context, characterService, mapper); var expected = "1"; var actual = dungeonService.GetDestinationId("TestDest"); Assert.Equal(expected, actual); }