Esempio n. 1
0
        public void Given_structuremap_when_printWhatDoIHave_then_shouldReturnWhatDoIHave()
        {
            var    container              = new Container(new Registering());
            var    printerInstance        = container.TryGetInstance <ITypeOfPrinter>();
            string blackAndWhitePrintText = printerInstance.Printing();

            Assert.Pass(container.WhatDoIHave());
        }
Esempio n. 2
0
        public void Given_structuremapWithTryGetInstance_when_print_then_shouldReturnAppropriateTypes()
        {
            var    container              = new Container(new Registering());
            var    printerInstance        = container.TryGetInstance <ITypeOfPrinter>();
            string blackAndWhitePrintText = printerInstance.Printing();

            Assert.Pass(blackAndWhitePrintText);
        }