public void TestGetParentById() { // Arrange ParentSqlDAO dao = new ParentSqlDAO(this.connectionString); Parent testParent = new Parent() { AddressId = mayfield, FirstName = "Megan", LastName = "Kweicen", EmailAddress = "askdfja", PhoneNumber = "342342432", }; testParent.Address.Street = "34243243"; testParent.Address.City = "sdlktgj"; testParent.Address.State = "akedgihj"; testParent.Address.Zip = 324234; testParent.Address.County = "asf"; testParent.Address.Country = "ertwseg"; // Act Parent parent = dao.GetParentById(megan, ruth); // Assert Assert.AreEqual("Megan", parent.FirstName); }
public void TestAddExistingParent() { // Arrange ParentSqlDAO dao = new ParentSqlDAO(this.connectionString); // Act bool isAdded = dao.AddExsistingParent(johnny, john); Assert.AreEqual(true, isAdded); }
public void TestGetParentsCount() { // Arrange ParentSqlDAO dao = new ParentSqlDAO(this.connectionString); // Act List <Parent> parents = dao.GetParents(ruth); // Assert Assert.AreEqual(3, parents.Count); }