var helpers = new SmsHelpers();
var parts = helpers.CountSmsParts(mymessage);
var helpers = new SmsHelpers();
var parts = helpers.GetEncoding(mymessage);
You only need to register our interface with your DI/IoC provider like this:
public void RegisterDependencies(IServiceCollection services)
{
services.AddTransient(typeof(ISmsHelpers), typeof(SmsHelpers));
}
var helpers = new SmsHelpers();
var parts = helpers.NormalizeNewLines(mymessage);
var helpers = new SmsHelpers();
var splitResult = helpers.SplitMessageWithWordWrap(mymessage);
var parts = splitResult.Parts;
var encoding = splitResult.Encoding;