Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            var userId = Guid.NewGuid();

            var userDetailsService = new UserDetailsService();

            var userDetails = userDetailsService.GetDetailsForUser(userId);

            Console.WriteLine(userDetails);
        }
        public static void Main(string[] args)
        {
            var userId = Guid.NewGuid();

            var databaseConnection = new DatabaseConnection();
            var userRepository     = new UserRepository(databaseConnection);
            var addressRepository  = new AddressRepository(databaseConnection);

            var userDetailsService = new UserDetailsService(userRepository, addressRepository);

            var userDetails = userDetailsService.GetDetailsForUser(userId);

            Console.WriteLine(userDetails);
        }