using System; namespace SmallInjectorDemo { /// /// /// Implementation of . /// public class ServiceTwo : IServiceTwo { private readonly int _id; /// /// Creates a new instance of . /// public ServiceTwo() { _id = Helper.NewRandomInteger(10, 99); Console.WriteLine(Helper.WriteMethodString(_id)); } /// public override string ToString() => Helper.WriteMethodString(_id); } /// /// Interface for service two. /// public interface IServiceTwo { } }