Skip to content

Commit 0b15850

Browse files
Merge pull request #1 from PosInformatique/develop
First initial version 1.0.0-alpha1 of the library
2 parents 2270efa + d0e9acb commit 0b15850

File tree

92 files changed

+39375
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+39375
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="PosInformatique.AspNet.WebForms.DependencyInjection.IntegrationTests.About" %>
2+
3+
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
4+
<h2><%: Title %>.</h2>
5+
<h3>Your application description page.</h3>
6+
<p>Use this area to provide additional information.</p>
7+
</asp:Content>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.UI;
6+
using System.Web.UI.WebControls;
7+
8+
namespace PosInformatique.AspNet.WebForms.DependencyInjection.IntegrationTests
9+
{
10+
public partial class About : Page
11+
{
12+
protected void Page_Load(object sender, EventArgs e)
13+
{
14+
15+
}
16+
}
17+
}

AspNet.WebForms.DependencyInjection.IntegrationTests/About.aspx.designer.cs

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.Optimization;
6+
using System.Web.UI;
7+
8+
namespace PosInformatique.AspNet.WebForms.DependencyInjection.IntegrationTests
9+
{
10+
public class BundleConfig
11+
{
12+
// For more information on Bundling, visit https://go.microsoft.com/fwlink/?LinkID=303951
13+
public static void RegisterBundles(BundleCollection bundles)
14+
{
15+
bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
16+
"~/Scripts/WebForms/WebForms.js",
17+
"~/Scripts/WebForms/WebUIValidation.js",
18+
"~/Scripts/WebForms/MenuStandards.js",
19+
"~/Scripts/WebForms/Focus.js",
20+
"~/Scripts/WebForms/GridView.js",
21+
"~/Scripts/WebForms/DetailsView.js",
22+
"~/Scripts/WebForms/TreeView.js",
23+
"~/Scripts/WebForms/WebParts.js"));
24+
25+
// Order is very important for these files to work, they have explicit dependencies
26+
bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
27+
"~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
28+
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
29+
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
30+
"~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));
31+
32+
// Use the Development version of Modernizr to develop with and learn from. Then, when you’re
33+
// ready for production, use the build tool at https://modernizr.com to pick only the tests you need
34+
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
35+
"~/Scripts/modernizr-*"));
36+
}
37+
}
38+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Web;
4+
using System.Web.Routing;
5+
using Microsoft.AspNet.FriendlyUrls;
6+
7+
namespace PosInformatique.AspNet.WebForms.DependencyInjection.IntegrationTests
8+
{
9+
public static class RouteConfig
10+
{
11+
public static void RegisterRoutes(RouteCollection routes)
12+
{
13+
var settings = new FriendlyUrlSettings();
14+
settings.AutoRedirectMode = RedirectMode.Permanent;
15+
routes.EnableFriendlyUrls(settings);
16+
}
17+
}
18+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//-----------------------------------------------------------------------
2+
// <copyright file="DogManager.cs" company="P.O.S Informatique">
3+
// Copyright (c) P.O.S Informatique. All rights reserved.
4+
// </copyright>
5+
//-----------------------------------------------------------------------
6+
namespace PosInformatique.AspNet.WebForms.DependencyInjection.IntegrationTests
7+
{
8+
using System;
9+
using System.Collections.Generic;
10+
using System.Collections.ObjectModel;
11+
using System.Linq;
12+
using Microsoft.Extensions.DependencyInjection;
13+
14+
public static class ServicesConfig
15+
{
16+
public static void RegisterServices(ServiceCollection serviceCollection)
17+
{
18+
serviceCollection.AddSingleton<IDogRepository, DogRepository>();
19+
serviceCollection.AddTransient<IDogManager, DogManager>();
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)