Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void PostAddLeadPipes()
 {
     leadsController.Post("Jim|Raynor|House|Plumbing|05/19/2018");
     Assert.AreEqual(6, leadsController.leadList.LeadCount());
 }