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