|
1 | | -using System; |
2 | 1 | using System.Collections; |
3 | 2 | using System.Collections.Generic; |
4 | 3 | using Microsoft.Extensions.DependencyInjection; |
5 | 4 |
|
6 | | -namespace JsonApiDotNetCoreTests |
| 5 | +namespace JsonApiDotNetCoreTests.Helpers |
7 | 6 | { |
8 | | - public class ServiceCollection : IServiceCollection |
| 7 | + public class ServiceCollection : List<ServiceDescriptor>, IServiceCollection |
9 | 8 | { |
10 | | - public int IndexOf(ServiceDescriptor serviceDescriptor) |
| 9 | + IEnumerator IEnumerable.GetEnumerator() |
11 | 10 | { |
12 | | - throw new NotImplementedException(); |
| 11 | + return GetEnumerator(); |
13 | 12 | } |
14 | | - |
15 | | - public void Insert(int pos, ServiceDescriptor serviceDescriptor) |
16 | | - { |
17 | | - throw new NotImplementedException(); |
18 | | - } |
19 | | - |
20 | | - public void RemoveAt(int pos) |
21 | | - { |
22 | | - throw new NotImplementedException(); |
23 | | - } |
24 | | - |
25 | | - public bool Remove(ServiceDescriptor serviceDescriptor) |
26 | | - { |
27 | | - throw new NotImplementedException(); |
28 | | - } |
29 | | - |
30 | | - public void Add(ServiceDescriptor serviceDescriptor) |
31 | | - { |
32 | | - throw new NotImplementedException(); |
33 | | - } |
34 | | - |
35 | | - public void Clear() |
36 | | - { |
37 | | - throw new NotImplementedException(); |
38 | | - } |
39 | | - |
40 | | - public bool Contains(ServiceDescriptor serviceDescriptor) |
41 | | - { |
42 | | - throw new NotImplementedException(); |
43 | | - } |
44 | | - |
45 | | - public void CopyTo(ServiceDescriptor[] serviceDescriptor, int pos) |
46 | | - { |
47 | | - throw new NotImplementedException(); |
48 | | - } |
49 | | - |
50 | | - public IEnumerable<ServiceDescriptor>.IEnumerator<ServiceDescriptor> GetEnumerator() |
51 | | - { |
52 | | - throw new NotImplementedException(); |
53 | | - } |
54 | | - |
55 | | - public IEnumerator GetEnumerator() |
56 | | - { |
57 | | - throw new NotImplementedException(); |
58 | | - } |
59 | | - |
60 | | - public int Count { get; set; } |
61 | | - public bool IsReadOnly { get; set; } |
62 | | - |
63 | 13 | } |
64 | 14 | } |
0 commit comments