public void Save(Member member) { using (var db = new IDataContext()) { db.Members.Add(member); db.SaveChanges(); } }
public void CanSaveMember() { var member = new Member(); member.Save(new Member { Name = "Sonny Corleone", ContactNo = "222", Username = "******", Password = "******", Status = "Active" }); Assert.Inconclusive("Saved"); }
public void CanGetMemberList() { var member = new Member(); Assert.AreEqual("asdf", member.GetList().Count.ToString()); }