Skip to content

Commit

Permalink
Merge pull request #256 from MakingSense/DD-1089-clean-up-obsoletes
Browse files Browse the repository at this point in the history
[DD-1089] clean up obsoletes
  • Loading branch information
RodrigoPereyraDiaz authored Dec 27, 2022
2 parents bc4d02b + 339b193 commit 7d60090
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 50 deletions.
6 changes: 0 additions & 6 deletions MailerQ.Test/RestApiClientTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,9 @@ public static IEnumerable<object[]> RestApiModelSpecimens()
yield return new object[] { specimens.Create<Pause>() };
yield return new object[] { specimens.Create<Error>() };
yield return new object[] { specimens.Create<Pool>() };
yield return new object[] { specimens.Create<IpPool>() };
yield return new object[] { specimens.Create<PoolIP>() };
yield return new object[] { specimens.Create<IpAddress>() };
yield return new object[] { specimens.Create<Suppression>() };
yield return new object[] { specimens.Create<ExternalMTA>() };
yield return new object[] { specimens.Create<ExternalIp>() };
}

public static IEnumerable<object[]> RestApiModelEndpointSpecimens()
Expand All @@ -85,12 +82,9 @@ public static IEnumerable<object[]> RestApiModelEndpointSpecimens()
yield return new object[] { specimens.Create<Pause>(), $"{Version}/pauses" };
yield return new object[] { specimens.Create<Error>(), $"{Version}/errors" };
yield return new object[] { specimens.Create<Pool>(), $"{Version}/pools" };
yield return new object[] { specimens.Create<IpPool>(), $"{Version}/pools" };
yield return new object[] { specimens.Create<PoolIP>(), $"{Version}/poolips" };
yield return new object[] { specimens.Create<IpAddress>(), $"{Version}/poolips" };
yield return new object[] { specimens.Create<Suppression>(), $"{Version}/suppressions" };
yield return new object[] { specimens.Create<ExternalMTA>(), $"{Version}/externalmtas" };
yield return new object[] { specimens.Create<ExternalIp>(), $"{Version}/externalmtas" };
}

[Theory]
Expand Down
12 changes: 0 additions & 12 deletions MailerQ/Core/IQueueManager.cs

This file was deleted.

2 changes: 1 addition & 1 deletion MailerQ/Core/QueueManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace MailerQ
/// A queue manager
/// </summary>
/// <remarks>Implemented with EasyNetQ</remarks>
public class QueueManager : IQueueManager, IQueueDeclarer
public class QueueManager : IQueuePublisher, IQueueSubscriber, IQueueDeclarer
{
private readonly IAdvancedBus bus;
private readonly MailerQConfiguration configuration;
Expand Down
11 changes: 0 additions & 11 deletions MailerQ/RestApi/ExternalMTA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ public enum ExternalIpProtocol
Http,
}

/// <summary>
/// External MTA.
/// Setting to uses IP address that is not local to the server MailerQ is running on.
/// </summary>
[JsonObject(
NamingStrategyType = typeof(LowercaseNamingStrategy),
ItemNullValueHandling = NullValueHandling.Ignore
)]
[Obsolete("User ExternalMTA class")]
public class ExternalIp : ExternalMTA { }

/// <summary>
/// External MTA.
/// Setting to uses IP address that is not local to the server MailerQ is running on.
Expand Down
11 changes: 0 additions & 11 deletions MailerQ/RestApi/Pool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,4 @@ public class Pool : IRestApiModel
/// </summary>
public string Description { get; set; }
}

/// <summary>
/// Pool of IPs
/// MailerQ offers IP Pools for easy management of your sending IP addresses.
/// </summary>
[JsonObject(
NamingStrategyType = typeof(LowercaseNamingStrategy),
ItemNullValueHandling = NullValueHandling.Ignore
)]
[Obsolete("User Pool class")]
public class IpPool : Pool { }
}
9 changes: 0 additions & 9 deletions MailerQ/RestApi/PoolIP.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Newtonsoft.Json;
using System;

namespace MailerQ.RestApi
{
Expand All @@ -25,12 +24,4 @@ public class PoolIP : IRestApiModel
[JsonProperty(Required = Required.Always)]
public string Name { get; set; }
}

/// <inheritdoc />
[JsonObject(
NamingStrategyType = typeof(LowercaseNamingStrategy),
ItemNullValueHandling = NullValueHandling.Ignore
)]
[Obsolete("User PoolIP class")]
public class IpAddress : PoolIP { }
}

0 comments on commit 7d60090

Please sign in to comment.