public void PostLead_Works() { var success = _leadsController.Post(JsonConvert.SerializeObject(_testLead)); var exitCode = ArtHoistCLI.ArtHoistCLI.Main(new[] { _postTestPath }); Assert.IsTrue(exitCode == 0); Assert.AreEqual("Success", success.Value); }
public void PostAddLeadPipes() { leadsController.Post("Jim|Raynor|House|Plumbing|05/19/2018"); Assert.AreEqual(6, leadsController.leadList.LeadCount()); }