public void AddressCreate() { //setup Address a = CreateNewAddress(); int preCount = TestHelper.CountTable("addresses"); preCount += 1; //act Address made = controller.CreateAddress(a); int postCount = TestHelper.CountTable("addresses"); //arrange Assert.AreEqual(preCount, postCount); }
public Address createAddress(string addressName, int zipcode) { return(locationController.CreateAddress(addressName, zipcode)); }