Skip to content

Commit

Permalink
Please... why are you removing namespaces?A?
Browse files Browse the repository at this point in the history
  • Loading branch information
david-driscoll committed Mar 1, 2022
1 parent 120893b commit f6f7097
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 31 deletions.
4 changes: 4 additions & 0 deletions test/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Rocket.Surgery.Conventions" />
<Using Include="Bogus" />
<Using Include="FluentAssertions" />
<Using Include="Xunit" />
<Using Include="Xunit.Abstractions" />
</ItemGroup>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />
</Project>
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using Bogus;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using NodaTime;
using Rocket.Surgery.DependencyInjection;
using Sample.Core.Domain;
using Xunit;
using Xunit.Abstractions;
using CoreRocketType = Sample.Core.Domain.RocketType;

namespace Sample.Graphql.Tests.LaunchRecords;

Expand All @@ -21,7 +19,7 @@ public async Task Should_Create_A_LaunchRecord()
{
var rocket = new ReadyRocket
{
Type = RocketType.Falcon9,
Type = CoreRocketType.Falcon9,
SerialNumber = "12345678901234"
};
z.Add(rocket);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using Bogus;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using NodaTime;
using Rocket.Surgery.DependencyInjection;
using Sample.Core.Domain;
using Sample.Core.Models;
using Xunit;
using Xunit.Abstractions;
using CoreRocketType = Sample.Core.Domain.RocketType;

namespace Sample.Graphql.Tests.LaunchRecords;

Expand All @@ -22,7 +20,7 @@ public async Task Should_Get_A_LaunchRecord()
var rocket = new ReadyRocket
{
Id = RocketId.New(),
Type = RocketType.Falcon9,
Type = CoreRocketType.Falcon9,
SerialNumber = "12345678901234"
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using Bogus;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using NodaTime;
using NodaTime.Extensions;
using Rocket.Surgery.DependencyInjection;
using Sample.Core.Domain;
using Sample.Core.Models;
using Xunit;
using Xunit.Abstractions;
using CoreRocketType = Sample.Core.Domain.RocketType;

namespace Sample.Graphql.Tests.LaunchRecords;

Expand All @@ -24,7 +22,7 @@ public async Task Should_Update_A_LaunchRecord()
var rocket = new ReadyRocket
{
Id = RocketId.New(),
Type = RocketType.Falcon9,
Type = CoreRocketType.Falcon9,
SerialNumber = "12345678901234"
};

Expand Down
3 changes: 1 addition & 2 deletions test/Sample.Graphql.Tests/Rockets/CreateRocketTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Xunit;
using Xunit.Abstractions;
using CoreRocketType = Sample.Core.Domain.RocketType;

namespace Sample.Graphql.Tests.Rockets;

Expand Down
8 changes: 3 additions & 5 deletions test/Sample.Graphql.Tests/Rockets/GetRocketTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using Bogus;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Rocket.Surgery.DependencyInjection;
using Sample.Core.Domain;
using Xunit;
using Xunit.Abstractions;
using CoreRocketType = Sample.Core.Domain.RocketType;

namespace Sample.Graphql.Tests.Rockets;

Expand All @@ -19,7 +17,7 @@ public async Task Should_Get_A_Rocket()
{
var rocket = new ReadyRocket
{
Type = RocketType.Falcon9,
Type = CoreRocketType.Falcon9,
SerialNumber = "12345678901234"
};
z.Add(rocket);
Expand Down
5 changes: 1 addition & 4 deletions test/Sample.Graphql.Tests/Rockets/ListRocketsTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using Bogus;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Rocket.Surgery.DependencyInjection;
using Sample.Core;
using Sample.Core.Domain;
using Xunit;
using Xunit.Abstractions;

namespace Sample.Graphql.Tests.Rockets;

Expand Down
8 changes: 3 additions & 5 deletions test/Sample.Graphql.Tests/Rockets/UpdateRocketTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using Bogus;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Rocket.Surgery.DependencyInjection;
using Sample.Core.Domain;
using Xunit;
using Xunit.Abstractions;
using CoreRocketType = Sample.Core.Domain.RocketType;

namespace Sample.Graphql.Tests.Rockets;

Expand All @@ -20,7 +18,7 @@ public async Task Should_Update_A_Rocket()
{
var rocket = new ReadyRocket
{
Type = RocketType.Falcon9,
Type = CoreRocketType.Falcon9,
SerialNumber = "12345678901234"
};
z.Add(rocket);
Expand Down
1 change: 1 addition & 0 deletions test/Sample.Graphql.Tests/Sample.Graphql.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
<ItemGroup>
<ProjectReference Include="..\..\sample\Sample.Graphql\Sample.Graphql.csproj" />
<ProjectReference Include="..\..\src\AspNetCore.Testing\Rocket.Surgery.LaunchPad.AspNetCore.Testing.csproj" />
<Using Include="StrawberryShake" />
</ItemGroup>
</Project>

0 comments on commit f6f7097

Please sign in to comment.