public void ClinicHelper_ConvertIDtoString_InValid_Bogus_Should_Fail() { // Arrange // Act var result = ClinicHelper.ConvertIDtoString("bogus"); // Reset // Assert Assert.AreEqual(string.Empty, result); }
public void ClinicHelper_ConvertIDtoString_Valid_Should_Pass() { // Arrange var data = new ClinicModel { Name = "W Medical" }; DataSourceBackend.Instance.ClinicBackend.Create(data); // Act var result = ClinicHelper.ConvertIDtoString(data.ID); // Reset DataSourceBackend.Instance.Reset(); // Assert Assert.AreEqual("W Medical", result); }