Esempio n. 1
0
        static void Main(string[] args)
        {
            if (args.Length < 1)
            {
                Console.WriteLine("I need an argument!");
            }
            else
            {
                var fileInfo = new FileInfo(args[0]);
                if (!fileInfo.Exists)
                {
                    Console.WriteLine("No such file found");
                }
                else
                {
                    var mainConverter = new MainConverter(fileInfo);
                    mainConverter.DoSomeStuffWithTheFile();
                }
            }

            Console.WriteLine("\n\nLet's test Submodule Functions");
            var fancy = new FancyService();

            fancy.FirstFancyMessage();

            Console.ReadKey();
        }
 public void Setup()
 {
     _fancyService = new FancyService();
 }
Esempio n. 3
0
 public IndexModel(FancyService service)
 {
     _service = service;
 }