Mercurial > pub > Impl
comparison _test/Test/Config/Container.pm @ 418:3f38dabaf5cc ref20150831
sync
author | cin |
---|---|
date | Mon, 28 Dec 2015 15:11:35 +0300 |
parents | 3ed0c58e9da3 |
children | b0481c071bea |
comparison
equal
deleted
inserted
replaced
417:3ed0c58e9da3 | 418:3f38dabaf5cc |
---|---|
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 use IMPL::declare { | 21 use IMPL::declare { |
22 require => { | 22 require => { |
23 Container => 'IMPL::Config::Container' | 23 Container => 'IMPL::Config::Container', |
24 | |
24 }, | 25 }, |
25 base => { | 26 base => { |
26 'IMPL::Test::Unit' => '@_' | 27 'IMPL::Test::Unit' => '@_' |
27 } | 28 } |
28 }; | 29 }; |
30 | 31 |
31 test CreateContainer => sub { | 32 test CreateContainer => sub { |
32 my $c1 = Container->new(); | 33 my $c1 = Container->new(); |
33 }; | 34 }; |
34 | 35 |
35 sub RegisterServices { | 36 test RegisterServices => sub { |
36 my $c1 = Container->new(); | 37 my $c1 = Container->new(); |
37 } | 38 |
39 $c1->Register( 'db' => Service->new( | |
40 type => 'Foo::Data', | |
41 norequire => 1, | |
42 activation => 'container' | |
43 )); | |
44 | |
45 return $c1; | |
46 }; | |
47 | |
48 test ResolveServices => sub { | |
49 | |
50 }; | |
38 | 51 |
39 | 52 |
40 1; | 53 1; |