public void Add_Blab_GetByUserId_Success() { // Arrange string Email = "*****@*****.**"; Blab Expected = new Blab(); Expected.Message = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer gravida posuere pretium. Cras maximus nibh sed accumsan elementum. Lorem ipsum dolor sit amet, consectetur adipiscing elit."; Expected.UserID = Email; var sysId = Expected.getSysId(); _harness.Add(Expected); // Act Blab Actual = (Blab)_harness.GetByUserId(Email); // Assert Assert.AreEqual(Expected, Actual); }
public void Add_Blab_GetByUserId_Success() { string Email = "*****@*****.**"; Blab Expected = new Blab(); Expected.Message = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; Expected.UserID = Email; _harness.Add(Expected); Blab Actual = (Blab)_harness.GetByUserId(Email); Assert.AreEqual(Expected, Actual); }
//Class for testing the adding of a user and getting a user by ID public void Add_User_GetByUserId_Success() { // Arrange User Expected = new User(); Expected.ChangeEmail("*****@*****.**"); var email = Expected.Email; _harness.Add(Expected); // Act User Actual = (User)_harness.GetByUserId(email); // Assert Assert.AreEqual(Expected, Actual); }
public void Add_Blab_GetByUserId_Success() { //Arrange string Email = "*****@*****.**"; Blab Expected = new Blab(); Expected.Message = "The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested."; Expected.UserID = Email; var sysId = Expected.getSysId(); _harness.Add(Expected); // Act Blab Actual = (Blab)_harness.GetByUserId(Email); // Assert Assert.AreEqual(Expected, Actual); }