Skip to content

Commit

Permalink
Unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasohlund committed Sep 9, 2014
1 parent e0de42b commit 0e3d7d4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/NServiceBus.Core.Tests/Unicast/HandlerInvocationCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,10 @@ public class StubMessage

public class StubTimeoutHandler : IHandleTimeouts<StubTimeoutState>
{
public bool TimeoutCalled;
public StubTimeoutState HandledState;



public void Timeout(StubTimeoutState state)
{
TimeoutCalled = true;
HandledState = state;
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/NServiceBus.Core.Tests/Unicast/Receiving.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,9 @@ public void Handle(EventMessage message)

class CheckMessageIdHandler : IHandleMessages<EventMessage>
{
public static bool Called;

public void Handle(EventMessage message)
{
Called = true;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/NServiceBus.Core/DataBus/InMemory/InMemoryDataBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public Entry Peek(string key)
public class Entry
{
public byte[] Data;
// ReSharper disable once NotAccessedField.Global
public DateTime ExpireAt;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/NServiceBus.Hosting.Tests/EndpointTypeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ namespace EndpointTypeTests
public abstract class TestContext
{
protected EndpointType EndpointType;

// ReSharper disable once NotAccessedField.Global
protected string TestValue;
}

Expand Down Expand Up @@ -148,15 +150,13 @@ public void when_serviceName_is_provided_via_hostArgs_it_should_have_first_prior
[TestFixture]
public class Constructor_Tests
{
protected EndpointType EndpointType;

[Test]
[ExpectedException(typeof (InvalidOperationException),
ExpectedMessage = "Endpoint configuration type needs to have a default constructor",
MatchType = MessageMatch.StartsWith)]
public void When_type_does_not_have_empty_public_constructor_it_should_blow_up()
{
EndpointType = new EndpointType(typeof (TypeWithoutEmptyPublicConstructor));
new EndpointType(typeof (TypeWithoutEmptyPublicConstructor));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace Runner.Encryption
public class EncryptionTestMessage : MessageBase
{
public WireEncryptedString Secret { get; set; }
// ReSharper disable once NotAccessedField.Global
public WireEncryptedString SecretField;
public ClassForNesting CreditCard { get; set; }
public WireEncryptedString SecretThatIsNull { get; set; }
Expand Down

0 comments on commit 0e3d7d4

Please sign in to comment.