Skip to content

Commit adcb447

Browse files
Change model to Claude Sonnet 4.5 and move C# usings to GlobalUsings.cs
Co-authored-by: Behnam-Emamian <9818491+Behnam-Emamian@users.noreply.github.com>
1 parent 8601b35 commit adcb447

File tree

5 files changed

+39
-41
lines changed

5 files changed

+39
-41
lines changed

.github/chatmodes/backend-developer.chatmode.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Expert in .NET backend development with Entity Framework Core and REST APIs for Oqtane"
33
tools: [editFiles, search, codebase]
4-
model: gpt-4
4+
model: claude-sonnet-4.5
55
---
66

77
# .NET Backend Developer
@@ -48,12 +48,25 @@ When working with controllers, services, repositories, Entity Framework, or data
4848

4949
When asked to create backend code, provide implementations like this:
5050

51-
### Entity Model
51+
### GlobalUsings.cs
52+
All common using statements should be placed in `GlobalUsings.cs`:
53+
5254
```csharp
53-
using System;
54-
using System.ComponentModel.DataAnnotations;
55-
using System.ComponentModel.DataAnnotations.Schema;
55+
global using System;
56+
global using System.Collections.Generic;
57+
global using System.ComponentModel.DataAnnotations;
58+
global using System.ComponentModel.DataAnnotations.Schema;
59+
global using System.Linq;
60+
global using System.Threading.Tasks;
61+
global using Microsoft.AspNetCore.Authorization;
62+
global using Microsoft.AspNetCore.Http;
63+
global using Microsoft.AspNetCore.Mvc;
64+
global using Microsoft.EntityFrameworkCore;
65+
global using Microsoft.Extensions.Logging;
66+
```
5667

68+
### Entity Model
69+
```csharp
5770
namespace ICTAce.FileHub.Shared.Models
5871
{
5972
/// <summary>
@@ -103,11 +116,6 @@ namespace ICTAce.FileHub.Shared.Models
103116

104117
### Repository Interface and Implementation
105118
```csharp
106-
using System.Collections.Generic;
107-
using System.Threading.Tasks;
108-
using ICTAce.FileHub.Shared.Models;
109-
using Oqtane.Repository;
110-
111119
namespace ICTAce.FileHub.Server.Repository
112120
{
113121
/// <summary>
@@ -193,10 +201,6 @@ namespace ICTAce.FileHub.Server.Repository
193201

194202
### Service Layer
195203
```csharp
196-
using System.Collections.Generic;
197-
using System.Threading.Tasks;
198-
using ICTAce.FileHub.Shared.Models;
199-
200204
namespace ICTAce.FileHub.Server.Services
201205
{
202206
public interface IFileService
@@ -279,10 +283,6 @@ namespace ICTAce.FileHub.Server.Services
279283

280284
### REST API Controller
281285
```csharp
282-
using Microsoft.AspNetCore.Authorization;
283-
using Microsoft.AspNetCore.Mvc;
284-
using Microsoft.AspNetCore.Http;
285-
286286
namespace ICTAce.FileHub.Server.Controllers
287287
{
288288
[Authorize]

.github/chatmodes/blazor-developer.chatmode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Expert in building Blazor components with Syncfusion in Oqtane CMS"
33
tools: [editFiles, search, codebase]
4-
model: gpt-4
4+
model: claude-sonnet-4.5
55
---
66

77
# Blazor Developer

.github/chatmodes/devops-engineer.chatmode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Expert in CI/CD pipelines, GitHub Actions, Docker, and deployment automation"
33
tools: [editFiles, search, codebase]
4-
model: gpt-4
4+
model: claude-sonnet-4.5
55
---
66

77
# DevOps Engineer

.github/chatmodes/html-designer.chatmode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Expert in HTML5, CSS3, and modern responsive design for Oqtane themes"
33
tools: [editFiles, search, codebase]
4-
model: gpt-4
4+
model: claude-sonnet-4.5
55
---
66

77
# HTML Designer

.github/chatmodes/tester.chatmode.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Expert in testing with BUnit, TUnit, and Reqnroll for comprehensive test coverage"
33
tools: [editFiles, search, codebase]
4-
model: gpt-4
4+
model: claude-sonnet-4.5
55
---
66

77
# Tester
@@ -45,15 +45,25 @@ When working with test files or testing-related tasks, you should:
4545

4646
## Example Patterns
4747

48-
### TUnit Tests (Unit Testing)
48+
### GlobalUsings.cs for Tests
49+
All common using statements should be placed in `GlobalUsings.cs`:
50+
4951
```csharp
50-
using TUnit.Core;
51-
using Moq;
52-
using FluentAssertions;
53-
using ICTAce.FileHub.Server.Services;
54-
using ICTAce.FileHub.Server.Repository;
55-
using ICTAce.FileHub.Shared.Models;
52+
global using System;
53+
global using System.Collections.Generic;
54+
global using System.Linq;
55+
global using System.Threading.Tasks;
56+
global using TUnit.Core;
57+
global using Moq;
58+
global using FluentAssertions;
59+
global using Bunit;
60+
global using Bunit.TestDoubles;
61+
global using Microsoft.Extensions.DependencyInjection;
62+
global using Reqnroll;
63+
```
5664

65+
### TUnit Tests (Unit Testing)
66+
```csharp
5767
namespace ICTAce.FileHub.Tests.Unit
5868
{
5969
[TestClass]
@@ -189,14 +199,6 @@ namespace ICTAce.FileHub.Tests.Unit
189199

190200
### BUnit Tests (Blazor Component Testing)
191201
```csharp
192-
using Bunit;
193-
using Bunit.TestDoubles;
194-
using FluentAssertions;
195-
using Microsoft.Extensions.DependencyInjection;
196-
using Moq;
197-
using ICTAce.FileHub.Client.Modules.FileHub;
198-
using ICTAce.FileHub.Shared.Models;
199-
200202
namespace ICTAce.FileHub.Tests.Components
201203
{
202204
public class FileListComponentTests : TestContext
@@ -404,10 +406,6 @@ Scenario Outline: Validate file upload restrictions
404406
```
405407

406408
```csharp
407-
using Reqnroll;
408-
using FluentAssertions;
409-
using ICTAce.FileHub.Tests.Drivers;
410-
411409
namespace ICTAce.FileHub.Tests.Steps
412410
{
413411
[Binding]

0 commit comments

Comments
 (0)