public void ApplierLogintest() { //Arrange DbApplier dbApplier = new DbApplier(); Applier applier = new Applier(); //Act applier = dbApplier.Login("*****@*****.**", "123456"); //Assert Assert.AreEqual(applier.Email, "*****@*****.**"); }
public void ApplierCreateDBTest() { //Arrange DbApplier dbApplier = new DbApplier(); Applier applier = new Applier("Sofie", "123", 20); //Act bool inserted = dbApplier.Create(applier); //Assert Assert.IsTrue(inserted); }
public void ApplierGetById() { //Arrange DbApplier dbApplier = new DbApplier(); Applier applier = new Applier(); //Act applier = dbApplier.Get(2); //Assert Assert.AreEqual(applier.Id, 2); }
public void ApplierUpdateDBTest() { //Arrange DbApplier dbApplier = new DbApplier(); JobCV jobCV = new JobCV { Id = 1 }; Applier applier = new Applier { Id = 6, Password = "******", Email = "*****@*****.**", Address = "hejvej 1", Country = "BonBonLand", ImageURL = "langIndePåNettet", Description = "En applier description", BannerURL = "LængereIndePåNettet", MaxRadius = 20, HomePage = "www.Hejvej.dk", FName = "Benny", LName = "Børge", Age = 41, Status = true, CurrentJob = "HejSigende", Birthdate = new DateTime(1989, 09, 11), JobCV = jobCV, }; //Act bool check = dbApplier.Update(applier); //Assert Assert.IsTrue(check); }