コード例 #1
0
ファイル: LocationTest.cs プロジェクト: Saveyy/MixMix
        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);
        }
コード例 #2
0
 public Address createAddress(string addressName, int zipcode)
 {
     return(locationController.CreateAddress(addressName, zipcode));
 }