Skip to content

Commit

Permalink
Import MoqQueryable namespace + remove unused usings
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Sep 6, 2024
1 parent fecf266 commit 47b1627
Show file tree
Hide file tree
Showing 95 changed files with 29 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.PlayerDetails;
using DragaliaAPI.Test.Utils;
using Microsoft.EntityFrameworkCore;

namespace DragaliaAPI.Database.Test.Repositories;

Expand Down
4 changes: 1 addition & 3 deletions DragaliaAPI/DragaliaAPI.Database/Entities/DbNewsItem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace DragaliaAPI.Database.Entities;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using DragaliaAPI.Database;
using DragaliaAPI.Features.Web;
using DragaliaAPI.Models.Options;
using DragaliaAPI.Services.Api;
using DragaliaAPI.Shared.MasterAsset;
Expand All @@ -12,7 +11,6 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using Npgsql;
using Respawn;
using Respawn.Graph;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Features.Dungeon;
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Models;
using DragaliaAPI.Services.Game;
using DragaliaAPI.Shared.Features.Presents;
using DragaliaAPI.Shared.MasterAsset;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;

namespace DragaliaAPI.Integration.Test.Features.Dungeon;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Services.Game;
using DragaliaAPI.Shared.MasterAsset;
using DragaliaAPI.Shared.MasterAsset.Models;
using Microsoft.EntityFrameworkCore;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Features.Login;
using DragaliaAPI.Features.Login.Actions;
using DragaliaAPI.Features.Wall;
using DragaliaAPI.Shared.MasterAsset.Models.Missions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Database.Utils;
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Services.Game;
using DragaliaAPI.Shared.MasterAsset.Models.Missions;

namespace DragaliaAPI.Integration.Test.Features.SavefileUpdate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Services.Game;
using Microsoft.EntityFrameworkCore;

namespace DragaliaAPI.Integration.Test.Features.SavefileUpdate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using DragaliaAPI.Database.Utils;
using DragaliaAPI.Features.StorySkip;
using DragaliaAPI.Shared.Features.StorySkip;
using DragaliaAPI.Shared.MasterAsset.Models.Missions;
using Microsoft.EntityFrameworkCore;
using static DragaliaAPI.Shared.Features.StorySkip.StorySkipRewards;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Database.Utils;
using DragaliaAPI.Features.Dungeon;
using DragaliaAPI.Models;
using DragaliaAPI.Shared.MasterAsset.Models.Missions;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;

namespace DragaliaAPI.Integration.Test.Features.Wall;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Features.Dungeon;
using DragaliaAPI.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;

namespace DragaliaAPI.Integration.Test.Features.Wall;

Expand Down
2 changes: 0 additions & 2 deletions DragaliaAPI/DragaliaAPI.Integration.Test/TestFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
using DragaliaAPI.Extensions;
using DragaliaAPI.Features.Dungeon;
using DragaliaAPI.Features.Fort;
using DragaliaAPI.Features.Web;
using DragaliaAPI.Models;
using DragaliaAPI.Models.Options;
using DragaliaAPI.Services;
using DragaliaAPI.Services.Api;
using DragaliaAPI.Shared.PlayerDetails;
using DragaliaAPI.Shared.Serialization;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.TestHost;
using Microsoft.EntityFrameworkCore;
Expand Down
1 change: 0 additions & 1 deletion DragaliaAPI/DragaliaAPI.MissionDesigner/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using DragaliaAPI.MissionDesigner;
using DragaliaAPI.MissionDesigner.Missions;
using DragaliaAPI.MissionDesigner.Missions.Drill;
using DragaliaAPI.MissionDesigner.Models.Attributes;
using DragaliaAPI.Shared.Serialization;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;

namespace DragaliaAPI.Shared.SourceGenerator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using DragaliaAPI.Shared.Serialization;
using MessagePack;

namespace DragaliaAPI.Shared.MasterAsset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Text.Json;
using DragaliaAPI.Shared.Serialization;
using MessagePack;
using MessagePack.Resolvers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Frozen;
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.Definitions.Enums;

namespace DragaliaAPI.Shared.MasterAsset.Models.Event;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
using AutoMapper;
using DragaliaAPI.Controllers.Dragalia;
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Database.Repositories;
using DragaliaAPI.Features.AbilityCrests;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.MasterAsset;
using DragaliaAPI.Test.Utils;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;

namespace DragaliaAPI.Test.Controllers;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using DragaliaAPI.Features.Dungeon;
using DragaliaAPI.Features.Dungeon.Record;
using DragaliaAPI.Features.Dungeon.Start;
using DragaliaAPI.Features.Quest;
using DragaliaAPI.Features.Reward;
using DragaliaAPI.Models;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Services.Photon;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using DragaliaAPI.Features.ClearParty;
using DragaliaAPI.Features.Quest;
using DragaliaAPI.Features.Reward;
using DragaliaAPI.Features.Story;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Shared.Definitions.Enums;
using Microsoft.EntityFrameworkCore.Metadata.Internal;

namespace DragaliaAPI.Test.Controllers;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using DragaliaAPI.Features.Missions;
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Services.Exceptions;
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.MasterAsset;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Database.Repositories;
using DragaliaAPI.Features.Dmode;
using DragaliaAPI.Features.Reward;
using DragaliaAPI.Features.Story;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Shared.Definitions.Enums;
using Microsoft.Extensions.Time.Testing;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;

namespace DragaliaAPI.Test.Features.Dmode;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
using DragaliaAPI.Shared.MasterAsset.Models.Dmode;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Time.Testing;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;
using DbPlayerDmodeDungeon = DragaliaAPI.Database.Entities.DbPlayerDmodeDungeon;

namespace DragaliaAPI.Test.Features.Dmode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Database.Repositories;
using DragaliaAPI.Features.AbilityCrests;
using DragaliaAPI.Features.Dungeon;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Shared.Definitions.Enums;
using Microsoft.Extensions.Logging.Abstractions;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;

namespace DragaliaAPI.Test.Features.Dungeon;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using DragaliaAPI.Features.Dungeon;
using DragaliaAPI.Models;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Models.Options;
using DragaliaAPI.Shared.MasterAsset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using DragaliaAPI.Features.Missions;
using DragaliaAPI.Features.Present;
using DragaliaAPI.Features.Reward;
using DragaliaAPI.Models;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.MasterAsset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
using DragaliaAPI.Features.Quest;
using DragaliaAPI.Features.Reward;
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Models;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.MasterAsset;
using DragaliaAPI.Test.Utils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Time.Testing;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;
using Range = Moq.Range;

namespace DragaliaAPI.Test.Features.Fort;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.MasterAsset.Models.Missions;
using DragaliaAPI.Test.Utils;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;

namespace DragaliaAPI.Test.Features.Missions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Features.Wall;
using Microsoft.Extensions.Logging;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;

namespace DragaliaAPI.Test.Features.Tutorial;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using DragaliaAPI.Services;
using DragaliaAPI.Shared.Definitions.Enums;
using Microsoft.Extensions.Logging.Abstractions;
using NSubstitute;

namespace DragaliaAPI.Test.Features.Wall;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using DragaliaAPI.Features.Present;
using DragaliaAPI.Features.Reward;
using DragaliaAPI.Features.Wall;
using DragaliaAPI.Models;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Shared.MasterAsset;
Expand Down
3 changes: 1 addition & 2 deletions DragaliaAPI/DragaliaAPI.Test/Services/AuthServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Time.Testing;
using Microsoft.IdentityModel.Tokens;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;

namespace DragaliaAPI.Test.Services;

Expand Down
3 changes: 1 addition & 2 deletions DragaliaAPI/DragaliaAPI.Test/Services/BonusServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.Serialization;
using Microsoft.Extensions.Logging;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;
using static DragaliaAPI.Test.Utils.IdentityTestUtils;

namespace DragaliaAPI.Test.Services;
Expand Down
3 changes: 1 addition & 2 deletions DragaliaAPI/DragaliaAPI.Test/Services/DragonServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
using DragaliaAPI.Shared.MasterAsset;
using DragaliaAPI.Test.Utils;
using Microsoft.Extensions.Time.Testing;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;

namespace DragaliaAPI.Test.Services;

Expand Down
6 changes: 1 addition & 5 deletions DragaliaAPI/DragaliaAPI.Test/Services/StoryServiceTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using DragaliaAPI.Database;
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Database.Repositories;
using DragaliaAPI.Database.Test;
Expand All @@ -11,13 +10,10 @@
using DragaliaAPI.Features.Story;
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Services.Game;
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.PlayerDetails;
using Microsoft.Extensions.Logging;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;

namespace DragaliaAPI.Test.Services;

Expand Down
3 changes: 1 addition & 2 deletions DragaliaAPI/DragaliaAPI.Test/UnitTestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
using DragaliaAPI.Shared.PlayerDetails;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using MockQueryable.EntityFrameworkCore;
using MockQueryable.Moq;
using MockQueryable;
using Moq.Language.Flow;
using Xunit.Abstractions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using DragaliaAPI.Features.Missions;
using DragaliaAPI.Features.Tutorial;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Services;
using DragaliaAPI.Services.Exceptions;
using DragaliaAPI.Shared.Definitions.Enums;
using DragaliaAPI.Shared.MasterAsset;
Expand Down
1 change: 0 additions & 1 deletion DragaliaAPI/DragaliaAPI/Features/Dmode/DmodeController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using DragaliaAPI.Controllers;
using DragaliaAPI.Database.Repositories;
using DragaliaAPI.Features.Reward;
using DragaliaAPI.Features.Story;
using DragaliaAPI.Models.Generated;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Features.Login;
using DragaliaAPI.Features.Login.Actions;
using Microsoft.EntityFrameworkCore;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Diagnostics;
using DragaliaAPI.Database.Entities;
using DragaliaAPI.Database.Repositories;
using DragaliaAPI.Features.AbilityCrests;
using DragaliaAPI.Models.Generated;
using DragaliaAPI.Shared.Definitions.Enums;
Expand Down
Loading

0 comments on commit 47b1627

Please sign in to comment.