Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface ICommuniceer {
- List<TestResponseDTO> GeefTestDTOs();
- List<NestedResponseDTO> GeefNestedDTOs();
- }
- public class Communiceerder : ICommuniceer {
- public List<TestResponseDTO> GeefTestDTOs() {
- List<TestResponseDTO> outward = new();
- foreach (int i in Enumerable.Range(100, 200)) {
- outward.Add(new TestResponseDTO());
- }
- return outward;
- }
- public List<NestedResponseDTO> GeefNestedDTOs() {
- List<NestedResponseDTO> outward = new();
- foreach (int i in Enumerable.Range(100, 200)) {
- outward.Add(new NestedResponseDTO());
- }
- return outward;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment