/// <summary> /// The get instance. /// </summary> /// <param name="type"> /// The type. /// </param> /// <returns> /// The <see cref="IEntrantContact"/>. /// </returns> /// <exception cref="NotImplementedException"> /// Not implemented contact type. /// </exception> public static IEntrantContact GetInstance(EntrantContactType type) { switch (type) { case EntrantContactType.Sms: return new SmsContact(); case EntrantContactType.Email: return new EmailContact(); default: throw new NotImplementedException(); } }
/// <summary> /// The get instance. /// </summary> /// <param name="type"> /// The type. /// </param> /// <returns> /// The <see cref="IEntrantContact"/>. /// </returns> /// <exception cref="NotImplementedException"> /// Not implemented contact type. /// </exception> public static IEntrantContact GetInstance(EntrantContactType type) { switch (type) { case EntrantContactType.Sms: return(new SmsContact()); case EntrantContactType.Email: return(new EmailContact()); default: throw new NotImplementedException(); } }