//ToDo: Start WebDev.WebServer.exe before the tests are run in TestSetup then delete this test public void SanityTest() { var amazonService = new AmazonService(); try { amazonService.DiscoverUsernameXml("Adam-Kahtava"); } catch(Exception) { Assert.Fail("WebDev.WebServer.exe (cassini) probably isn't running, try starting up the ServiceHost project."); } }
//ToDo: Start WebDev.WebServer.exe before the tests are run in TestSetup then delete this test public void SanityTest() { var amazonService = new AmazonService(); try { amazonService.DiscoverUsernameXml("Adam-Kahtava"); } catch (Exception) { Assert.Fail("WebDev.WebServer.exe (cassini) probably isn't running, try starting up the ServiceHost project."); } }
public void ShouldVerifyProxyAndReturnProfile() { var amazonService = new AmazonService(); var profileFromXmlRequest = amazonService.DiscoverUsernameXml("Adam-Kahtava"); Assert.IsNotNull(profileFromXmlRequest); Assert.IsFalse(string.IsNullOrEmpty(profileFromXmlRequest.CustomerId)); Assert.IsFalse(string.IsNullOrEmpty(profileFromXmlRequest.ListId)); var profileFromJsonRequest = amazonService.DiscoverUsernameJson("Adam-Kahtava"); Assert.AreEqual(profileFromXmlRequest.CustomerId, profileFromJsonRequest.CustomerId); Assert.AreEqual(profileFromXmlRequest.ListId, profileFromJsonRequest.ListId); }