public void CreateFormatterCustom()
        {
            string message          = "some asdf random ;lkj message";
            var    dateProvider     = new FixedDateProvider(new DateTime(1993, 03, 11, 2, 25, 35));
            var    formatterFactory = new FormatterSimpleFactory(dateProvider);

            FormatterSimpleFactory.Formatter formatter = formatterFactory.CreateFormatter("Custom");

            string formatted = formatter(message);

            Assert.AreEqual(formatted, "SMS: some asdf random ;lkj message");
        }
        public void CreateFormatterUppercase()
        {
            string message          = "some asdf random ;lkj message";
            var    dateProvider     = new FixedDateProvider(new DateTime(1993, 03, 11, 2, 25, 35));
            var    formatterFactory = new FormatterSimpleFactory(dateProvider);

            FormatterSimpleFactory.Formatter formatter = formatterFactory.CreateFormatter("Uppercase");

            string formatted = formatter(message);

            Assert.AreEqual(formatted, "SOME ASDF RANDOM ;LKJ MESSAGE");
        }
        public void CreateFormatterStartWithDate()
        {
            string message          = "some asdf random ;lkj message";
            var    dateProvider     = new FixedDateProvider(new DateTime(1993, 03, 11, 2, 25, 35));
            var    formatterFactory = new FormatterSimpleFactory(dateProvider);

            FormatterSimpleFactory.Formatter formatter = formatterFactory.CreateFormatter("Start with DateTime");

            string formatted = formatter(message);

            Assert.AreEqual(formatted, "[03/11/1993 02:25:35] some asdf random ;lkj message");
        }