private int AddContact() { var request = new AddContact { CustomerId = 21, Username = "******" + Guid.NewGuid(), Password = "******", Name = "Ryan Bantz", Email = "*****@*****.**", Phone = "888-555-1212", }; return(Sut.AddContact(request).Id); }
public void should_call_AddContact() { //arrange var request = new AddContact { CustomerId = 21, Username = "******" + Guid.NewGuid(), Password = "******", Name = "Ryan Bantz", Email = "*****@*****.**", Phone = "888-555-1212", }; //act var actual = Sut.AddContact(request); //assert Assert.AreEqual(201, actual.Code); Assert.IsEmpty(actual.Message); Assert.AreEqual("OK", actual.Status); }