public static void InsertOneMember()
        {
            MemberProfile m1 = new MemberProfile()
            {
                RecordID = 1,
                Lastname = "Dudan",
                Firstname = "Valiant",
                MI = "A",
                Nickname = "Dudz",
                Address = "Caloocan City",
                Birthdate = new DateTime(1986, 8, 14),
                LeaderId = 11,
                Template = 1
            };

            List<MemberProfilePropertyValue> props = new List<MemberProfilePropertyValue>();
            MemberProfilePropertyValue prop1 = new MemberProfilePropertyValue() { 
                IsDeleted = 0,
                MemberId = 1,
                PropertyID = 1,
                Value = "True"
            };
            MemberProfilePropertyValue prop2 = new MemberProfilePropertyValue()
            {
                IsDeleted = 0,
                MemberId = 1,
                PropertyID = 1,
                Value = "True"
            };
            MemberProfilePropertyValue prop3 = new MemberProfilePropertyValue()
            {
                IsDeleted = 0,
                MemberId = 1,
                PropertyID = 1,
                Value = "False"
            };
            props.Add(prop1); props.Add(prop2); props.Add(prop3);
            m1.MemberProfilePropertyValues = props;
            memberRepo.InsertOnSubmit(m1);
        }
        public void DeleteOnSubmitTest()
        {
            MemberProfile m1 = new MemberProfile()
            {
                Lastname = "Dudan",
                Firstname = "PV",
                MI = "N",
                Nickname = "Duduy",
                Address = "Cabuyao City",
                Birthdate = new DateTime(2012, 10, 9),
                LeaderId = 11
            };

            repo.InsertOnSubmit(m1);

            MemberProfile mp = repo.GetById(m1.RecordID);
            Assert.IsNotNull(mp);

            int deletedId = m1.RecordID;

            repo.DeleteOnSubmit(m1.RecordID);

            MemberProfile mp2 = repo.GetById(deletedId);
            Assert.IsNull(mp2);
        }
        public void InsertOnSubmitTest()
        {
            MemberProfile m1 = new MemberProfile()
            {
                RecordID = 2,
                Lastname = "Nicdao",
                Firstname = "Apple",
                MI = "B",
                Nickname = "Apz",
                Address = "Cabuyao City",
                Birthdate = new DateTime(1984, 10, 30),
                LeaderId = 11
            };

            repo.InsertOnSubmit(m1);

            MemberProfile mp = repo.GetById(m1.RecordID);
            Assert.IsNotNull(mp);

        }
 // POST api/values
 public void Post(MemberProfile profile)
 {
     repository.InsertOnSubmit(profile);
 }