In this project, there are sample coding for some structures that a backend application may need.
- Clone the application.
- Open the project in Visual Studio.
- In Solution Explorer, right click the solution and select Restore NuGet Packages.
- On the menu bar, choose Build and then choose Clean Solution.
- On the menu bar, choose Build and then choose Build Solution.
- Press the green arrow (Start Button) on the main Visual Studio toolbar.
-
Create a new database named ShopLogTest in Sql Server Object Explorer.
-
Run the following query on the database.
CREATE TABLE [dbo].[Log] ( [Id] INT IDENTITY (1, 1) NOT NULL, [TimeStamp] DATETIME NULL, [MessageObject] NVARCHAR (4000) NULL, [Level] NVARCHAR (50) NULL, [Identity] NVARCHAR (50) NULL, [LoggerName] NVARCHAR (50) NULL, [UserName] NVARCHAR (255) NULL, PRIMARY KEY CLUSTERED ([Id] ASC) );
- used: Ninject
- integration: SetResolver Method
- used: FluentValidation
- tests: ProductValidatorTests.cs
- used: log4net
- tests: Log4NetTests.cs, Log4NetAspectTests.cs
- used: MemoryCache
- tests: CacheAspectTests.cs, CacheRemoveAspectTests.cs
- used: Postsharp
- tests: TransactionScopeAspectTests.cs
- used: Postsharp, System.Security.Principal, FormsAuthenticationTicket
- tests: AuthorizeAspectTests.cs
- web integration: AuthenticationHelper.cs, OnPostAuthenticateRequest Method
- login: Login Action
- used: Postsharp, FluentValidation
- tests: FieldLevelAuthorizeAspectTests.cs
- used: Postsharp, Stopwatch
- tests: PerformanceCounterAspectTests.cs
- used: Bogus
- integration: ShopContextDbInitializer.cs
Furkan Işıtan