public async Task FailCommanderWrongInput() { var response = await EdsmAPI.GetCommanderRanks(nonexistentCommanderName); response.Dump(); Assert.IsNull(response.Data); Assert.AreEqual(203, response.MessageNumber); }
public async Task FailCommanderEmptyInput() { var response = await EdsmAPI.GetCommanderRanks(String.Empty); response.Dump(); Assert.IsNull(response.Data); Assert.AreEqual(201, response.MessageNumber); }
public async Task FailCommanderPrivate() { var response = await EdsmAPI.GetCommanderRanks(privateCommanderName); response.Dump(); Assert.IsNull(response.Data); Assert.AreEqual(207, response.MessageNumber); }
public async Task FailCommanderWhiteSpaces() { var response = await EdsmAPI.GetCommanderRanks(emptyCommanderNameWhiteSpaces); response.Dump(); Assert.IsNull(response.Data); Assert.AreEqual(201, response.MessageNumber); }
public async Task GetCommanderPublic() { var response = await EdsmAPI.GetCommanderRanks(publicCommanderName); response.Dump(); Assert.IsNotNull(response.Data); Assert.AreEqual(100, response.MessageNumber); }