diff --git a/MailerQ.Test/RestApiClientTest.cs b/MailerQ.Test/RestApiClientTest.cs index c151eba..3d1732d 100644 --- a/MailerQ.Test/RestApiClientTest.cs +++ b/MailerQ.Test/RestApiClientTest.cs @@ -70,12 +70,9 @@ public static IEnumerable RestApiModelSpecimens() yield return new object[] { specimens.Create() }; yield return new object[] { specimens.Create() }; yield return new object[] { specimens.Create() }; - yield return new object[] { specimens.Create() }; yield return new object[] { specimens.Create() }; - yield return new object[] { specimens.Create() }; yield return new object[] { specimens.Create() }; yield return new object[] { specimens.Create() }; - yield return new object[] { specimens.Create() }; } public static IEnumerable RestApiModelEndpointSpecimens() @@ -85,12 +82,9 @@ public static IEnumerable RestApiModelEndpointSpecimens() yield return new object[] { specimens.Create(), $"{Version}/pauses" }; yield return new object[] { specimens.Create(), $"{Version}/errors" }; yield return new object[] { specimens.Create(), $"{Version}/pools" }; - yield return new object[] { specimens.Create(), $"{Version}/pools" }; yield return new object[] { specimens.Create(), $"{Version}/poolips" }; - yield return new object[] { specimens.Create(), $"{Version}/poolips" }; yield return new object[] { specimens.Create(), $"{Version}/suppressions" }; yield return new object[] { specimens.Create(), $"{Version}/externalmtas" }; - yield return new object[] { specimens.Create(), $"{Version}/externalmtas" }; } [Theory] diff --git a/MailerQ/Core/IQueueManager.cs b/MailerQ/Core/IQueueManager.cs deleted file mode 100644 index d647f20..0000000 --- a/MailerQ/Core/IQueueManager.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace MailerQ -{ - /// - /// A queue manager for publishing and subscribe messages to and from the queue - /// - [Obsolete("Use IQueuePublisher and/or IQueueSubscriber")] - public interface IQueueManager : IDisposable, IQueuePublisher, IQueueSubscriber - { - } -} diff --git a/MailerQ/Core/QueueManager.cs b/MailerQ/Core/QueueManager.cs index 567a2a1..08da513 100644 --- a/MailerQ/Core/QueueManager.cs +++ b/MailerQ/Core/QueueManager.cs @@ -16,7 +16,7 @@ namespace MailerQ /// A queue manager /// /// Implemented with EasyNetQ - public class QueueManager : IQueueManager, IQueueDeclarer + public class QueueManager : IQueuePublisher, IQueueSubscriber, IQueueDeclarer { private readonly IAdvancedBus bus; private readonly MailerQConfiguration configuration; diff --git a/MailerQ/RestApi/ExternalMTA.cs b/MailerQ/RestApi/ExternalMTA.cs index fd85c38..0897e42 100644 --- a/MailerQ/RestApi/ExternalMTA.cs +++ b/MailerQ/RestApi/ExternalMTA.cs @@ -23,17 +23,6 @@ public enum ExternalIpProtocol Http, } - /// - /// External MTA. - /// Setting to uses IP address that is not local to the server MailerQ is running on. - /// - [JsonObject( - NamingStrategyType = typeof(LowercaseNamingStrategy), - ItemNullValueHandling = NullValueHandling.Ignore - )] - [Obsolete("User ExternalMTA class")] - public class ExternalIp : ExternalMTA { } - /// /// External MTA. /// Setting to uses IP address that is not local to the server MailerQ is running on. diff --git a/MailerQ/RestApi/Pool.cs b/MailerQ/RestApi/Pool.cs index 728bcd1..b5e643f 100644 --- a/MailerQ/RestApi/Pool.cs +++ b/MailerQ/RestApi/Pool.cs @@ -24,15 +24,4 @@ public class Pool : IRestApiModel /// public string Description { get; set; } } - - /// - /// Pool of IPs - /// MailerQ offers IP Pools for easy management of your sending IP addresses. - /// - [JsonObject( - NamingStrategyType = typeof(LowercaseNamingStrategy), - ItemNullValueHandling = NullValueHandling.Ignore - )] - [Obsolete("User Pool class")] - public class IpPool : Pool { } } diff --git a/MailerQ/RestApi/PoolIP.cs b/MailerQ/RestApi/PoolIP.cs index 1ca0a03..86f8e5b 100644 --- a/MailerQ/RestApi/PoolIP.cs +++ b/MailerQ/RestApi/PoolIP.cs @@ -1,5 +1,4 @@ using Newtonsoft.Json; -using System; namespace MailerQ.RestApi { @@ -25,12 +24,4 @@ public class PoolIP : IRestApiModel [JsonProperty(Required = Required.Always)] public string Name { get; set; } } - - /// - [JsonObject( - NamingStrategyType = typeof(LowercaseNamingStrategy), - ItemNullValueHandling = NullValueHandling.Ignore - )] - [Obsolete("User PoolIP class")] - public class IpAddress : PoolIP { } }