Skip to content

Commit a9fede7

Browse files
committed
Styling fixes (#247)
1 parent 25f04ad commit a9fede7

File tree

6 files changed

+11
-18
lines changed

6 files changed

+11
-18
lines changed

src/MyTested.AspNetCore.Mvc.Caching/Builders/Data/DistributedCache/DistributedCacheEntryBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class DistributedCacheEntryBuilder : IDistributedCacheEntryKeyBuilder, IA
1313
public DistributedCacheEntryBuilder()
1414
=> this.DistributedCacheEntry = new DistributedCacheEntry();
1515

16-
1716
public IAndDistributedCacheEntryBuilder WithKey(string key)
1817
{
1918
this.EntryKey = key;

src/MyTested.AspNetCore.Mvc.Caching/Builders/Data/DistributedCache/DistributedCacheEntryTestBuilder.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
using MyTested.AspNetCore.Mvc.Exceptions;
2-
using MyTested.AspNetCore.Mvc.Internal.Caching;
3-
using MyTested.AspNetCore.Mvc.Utilities.Extensions;
4-
5-
namespace MyTested.AspNetCore.Mvc.Builders.Data.DistributedCache
1+
namespace MyTested.AspNetCore.Mvc.Builders.Data.DistributedCache
62
{
73
using System;
84
using Contracts.Data.DistributedCache;
95
using System.Collections.Generic;
106
using Internal.TestContexts;
117
using Utilities;
128
using Utilities.Validators;
9+
using Exceptions;
10+
using Internal.Caching;
11+
using Utilities.Extensions;
1312

1413
public class DistributedCacheEntryTestBuilder : DistributedCacheEntryBuilder, IDistributedCacheEntryKeyTestBuilder, IAndDistributedCacheEntryTestBuilder
1514
{
@@ -25,7 +24,6 @@ public DistributedCacheEntryTestBuilder(ComponentTestContext testContext)
2524

2625
internal ComponentTestContext TestContext { get; private set; }
2726

28-
2927
public new IAndDistributedCacheEntryTestBuilder WithKey(string key)
3028
{
3129
base.WithKey(key);

src/MyTested.AspNetCore.Mvc.Caching/Builders/Data/DistributedCache/DistributedCacheTestBuilder.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using MyTested.AspNetCore.Mvc.Internal.Caching;
2-
3-
namespace MyTested.AspNetCore.Mvc.Builders.Data.DistributedCache
1+
namespace MyTested.AspNetCore.Mvc.Builders.Data.DistributedCache
42
{
53
using System;
64
using System.Collections.Generic;
@@ -14,6 +12,7 @@ namespace MyTested.AspNetCore.Mvc.Builders.Data.DistributedCache
1412
using Internal.Contracts;
1513
using Utilities;
1614
using Utilities.Extensions;
15+
using Internal.Caching;
1716

1817
/// <summary>
1918
/// Used for testing <see cref="IDistributedCache"/>.

test/MyTested.AspNetCore.Mvc.Caching.Test/BuildersTests/DataTests/DistributedCacheBuilderTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ public void WithCacheBuilderWithKeyBuilderAndAlsoShouldSetCorrectValues()
268268
.Ok();
269269
}
270270

271-
272271
public void Dispose() => MyApplication.StartsFrom<DefaultStartup>();
273272
}
274273
}

test/MyTested.AspNetCore.Mvc.Caching.Test/Setups/Common/CustomDistributedCache.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
using System.Linq;
2-
using System.Threading;
3-
using System.Threading.Tasks;
4-
using Microsoft.Extensions.Caching.Distributed;
5-
6-
namespace MyTested.AspNetCore.Mvc.Test.Setups.Common
1+
namespace MyTested.AspNetCore.Mvc.Test.Setups.Common
72
{
3+
using System.Threading;
4+
using System.Threading.Tasks;
5+
using Microsoft.Extensions.Caching.Distributed;
6+
87
public class CustomDistributedCache : IDistributedCache
98
{
109
public byte[] Get(string key) => new byte[0];

test/MyTested.AspNetCore.Mvc.Caching.Test/Setups/Controllers/DistributedCacheController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public IActionResult ValidDistributedCacheEntriesAction([FromServices] IDistribu
4646
return this.Ok();
4747
}
4848

49-
5049
private IActionResult InternalServerError() => this.StatusCode(500);
5150
}
5251
}

0 commit comments

Comments
 (0)