public void Check_If_Email_Exist_Passed() { // arrange var klantDalStub = new KlantDALStub(); Klant klant = new Klant(); klantDalStub.ExistReturnValue = true; // act var Result = klantDalStub.CheckEmailExistance(klant); // assert Assert.True(Result); }
public void Check_If_Email_Exist_Failed() { // arrange var klantDalStub = new KlantDALStub(); //var klantdal = new KlantDAL(); Klant klant = new Klant(); klantDalStub.ExistReturnValue = false; // act var Result = klantDalStub.CheckEmailExistance(klant); // assert Assert.False(Result); }