예제 #1
0
 public void DeleteTest()
 {
     var target = new StudentDAO(); // TODO: Initialize to an appropriate value
     var student = new StudentDTO { Id = 1 }; // TODO: Initialize to an appropriate value
     var actual = target.Delete(student);
     Assert.AreEqual(false, actual.Status);
 }
예제 #2
0
 public void GetAllTest()
 {
     var target = new StudentDAO(); // TODO: Initialize to an appropriate value
     var actual = target.GetAll();
     Assert.AreNotEqual(null, actual);
 }
예제 #3
0
 public void UpdateTest()
 {
     var target = new StudentDAO(); // TODO: Initialize to an appropriate value
     var actual = target.Update(new StudentDTO{Id =1, Name = "asdljk"});
     Assert.AreEqual("asdljk", actual.Name);
 }
예제 #4
0
 public void CreateTest()
 {
     var target = new StudentDAO(); // TODO: Initialize to an appropriate value
     var actual = target.Create(new StudentDTO {Name = "nXqd123123"});
     Assert.AreNotEqual(null, actual);
 }
예제 #5
0
 public void StudentDAOConstructorTest()
 {
     StudentDAO target = new StudentDAO();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }