forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetadataTestBase.cs
More file actions
23 lines (21 loc) · 813 Bytes
/
MetadataTestBase.cs
File metadata and controls
23 lines (21 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Linq;
using ServiceStack.WebHost.Endpoints.Tests.Support.Operations;
namespace ServiceStack.WebHost.Endpoints.Tests.Support
{
public abstract class MetadataTestBase
{
protected List<Type> ReplyOperations { get; set; }
protected List<Type> OneWayOperations { get; set; }
protected List<Type> AllOperations { get; set; }
protected MetadataTestBase()
{
this.ReplyOperations = new[] { typeof(GetCustomer), typeof(GetCustomers) }.ToList();
this.OneWayOperations = new[] { typeof(StoreCustomer) }.ToList();
this.AllOperations = new[] { typeof(GetCustomerResponse), typeof(GetCustomersResponse) }.ToList();
this.AllOperations.AddRange(ReplyOperations);
this.AllOperations.AddRange(OneWayOperations);
}
}
}