예제 #1
0
        public void InsertCommunitySponsor()
        {
            bool success   = com.InsertSponsor(1, new int[] { 1 }).Result;
            var  community = com.GetByIdAsync(1).Result;

            Assert.AreEqual(2, community.sponsor.Count);
            Assert.IsNotNull(community.sponsor.First(t => t.name == "Microsoft"));

            bool id2 = com.DeleteSponsor(1, new int[] { 1 }).Result;;
        }