Skip to content

Commit 8622ce0

Browse files
committed
add Mc2.Curd.Core project in solution
1 parent aa2ba03 commit 8622ce0

Some content is hidden

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

47 files changed

+1050
-735
lines changed

Diff for: Mc2.CrudTest.AcceptanceTests/CreateCustomerTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ public void CreateCustomerValid_ReturnsSuccess()
1212

1313
// Please create more tests based on project requirements as per in readme.md
1414
}
15-
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
3+
<PropertyGroup>
4+
<TargetFramework>net5.0</TargetFramework>
55

6-
<IsPackable>false</IsPackable>
7-
</PropertyGroup>
6+
<IsPackable>false</IsPackable>
7+
</PropertyGroup>
88

9-
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
11-
<PackageReference Include="MSTest.TestAdapter" Version="2.2.3" />
12-
<PackageReference Include="MSTest.TestFramework" Version="2.2.3" />
13-
<PackageReference Include="coverlet.collector" Version="3.0.2" />
14-
<PackageReference Include="xunit.extensibility.core" Version="2.4.1" />
15-
</ItemGroup>
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4"/>
11+
<PackageReference Include="MSTest.TestAdapter" Version="2.2.3"/>
12+
<PackageReference Include="MSTest.TestFramework" Version="2.2.3"/>
13+
<PackageReference Include="coverlet.collector" Version="3.0.2"/>
14+
<PackageReference Include="xunit.extensibility.core" Version="2.4.1"/>
15+
</ItemGroup>
1616

1717
</Project>

Diff for: Mc2.CrudTest.Presentation/Front/App.razor

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
22
<Found Context="routeData">
3-
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
3+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
44
</Found>
55
<NotFound>
66
<LayoutView Layout="@typeof(MainLayout)">
77
<p>Sorry, there's nothing at this address.</p>
88
</LayoutView>
99
</NotFound>
10-
</Router>
10+
</Router>
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

3-
<PropertyGroup>
4-
<TargetFramework>net5.0</TargetFramework>
5-
</PropertyGroup>
3+
<PropertyGroup>
4+
<TargetFramework>net5.0</TargetFramework>
5+
</PropertyGroup>
66

7-
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.11" />
9-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.11" PrivateAssets="all" />
10-
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
11-
</ItemGroup>
7+
<ItemGroup>
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.11"/>
9+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.11" PrivateAssets="all"/>
10+
<PackageReference Include="System.Net.Http.Json" Version="5.0.0"/>
11+
</ItemGroup>
1212

13-
<ItemGroup>
14-
<ProjectReference Include="..\Shared\Mc2.CrudTest.Shared.csproj" />
15-
</ItemGroup>
13+
<ItemGroup>
14+
<ProjectReference Include="..\Shared\Mc2.CrudTest.Shared.csproj"/>
15+
</ItemGroup>
1616

1717
</Project>

Diff for: Mc2.CrudTest.Presentation/Front/Pages/Counter.razor

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
{
1414
_currentCount++;
1515
}
16-
}
16+
17+
}

Diff for: Mc2.CrudTest.Presentation/Front/Pages/FetchData.razor

+19-17
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,31 @@
88

99
@if (_forecasts == null)
1010
{
11-
<p><em>Loading...</em></p>
11+
<p>
12+
<em>Loading...</em>
13+
</p>
1214
}
1315
else
1416
{
1517
<table class="table">
1618
<thead>
17-
<tr>
18-
<th>Date</th>
19-
<th>Temp. (C)</th>
20-
<th>Temp. (F)</th>
21-
<th>Summary</th>
22-
</tr>
19+
<tr>
20+
<th>Date</th>
21+
<th>Temp. (C)</th>
22+
<th>Temp. (F)</th>
23+
<th>Summary</th>
24+
</tr>
2325
</thead>
2426
<tbody>
25-
@foreach (WeatherForecast forecast in _forecasts)
26-
{
27-
<tr>
28-
<td>@forecast.Date.ToShortDateString()</td>
29-
<td>@forecast.TemperatureC.ToString()</td>
30-
<td>@forecast.TemperatureF.ToString()</td>
31-
<td>@forecast.Summary</td>
32-
</tr>
33-
}
27+
@foreach (WeatherForecast forecast in _forecasts)
28+
{
29+
<tr>
30+
<td>@forecast.Date.ToShortDateString()</td>
31+
<td>@forecast.TemperatureC.ToString()</td>
32+
<td>@forecast.TemperatureF.ToString()</td>
33+
<td>@forecast.Summary</td>
34+
</tr>
35+
}
3436
</tbody>
3537
</table>
3638
}
@@ -43,4 +45,4 @@ else
4345
_forecasts = await _http.GetFromJsonAsync<WeatherForecast[]>("WeatherForecast");
4446
}
4547

46-
}
48+
}

Diff for: Mc2.CrudTest.Presentation/Front/Pages/Index.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
Feel free to change the solution the way you think is right.
66

7-
<SurveyPrompt Title="CrudTest" />
7+
<SurveyPrompt Title="CrudTest"/>

Diff for: Mc2.CrudTest.Presentation/Front/Program.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ public static async Task Main(string[] args)
1313
WebAssemblyHostBuilder builder = WebAssemblyHostBuilder.CreateDefault(args);
1414
builder.RootComponents.Add<App>("#app");
1515

16-
builder.Services.AddScoped(_ => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
16+
builder.Services.AddScoped(_ => new HttpClient
17+
{ BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
1718

1819
await builder.Build().RunAsync();
1920
}
2021
}
21-
}
22+
}

Diff for: Mc2.CrudTest.Presentation/Front/Shared/MainLayout.razor

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div class="page">
44
<div class="sidebar">
5-
<NavMenu />
5+
<NavMenu/>
66
</div>
77

88
<div class="main">
@@ -14,4 +14,4 @@
1414
@Body
1515
</div>
1616
</div>
17-
</div>
17+
</div>

Diff for: Mc2.CrudTest.Presentation/Front/Shared/MainLayout.razor.css

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
align-items: center;
2222
}
2323

24-
.top-row ::deep a, .top-row .btn-link {
25-
white-space: nowrap;
26-
margin-left: 1.5rem;
27-
}
24+
.top-row ::deep a, .top-row .btn-link {
25+
white-space: nowrap;
26+
margin-left: 1.5rem;
27+
}
2828

29-
.top-row a:first-child {
30-
overflow: hidden;
31-
text-overflow: ellipsis;
32-
}
29+
.top-row a:first-child {
30+
overflow: hidden;
31+
text-overflow: ellipsis;
32+
}
3333

3434
@media (max-width: 640.98px) {
3535
.top-row:not(.auth) {

Diff for: Mc2.CrudTest.Presentation/Front/Shared/NavMenu.razor

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@
3434
{
3535
_collapseNavMenu = !_collapseNavMenu;
3636
}
37-
}
37+
38+
}

Diff for: Mc2.CrudTest.Presentation/Front/Shared/NavMenu.razor.css

+17-17
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.top-row {
66
height: 3.5rem;
7-
background-color: rgba(0,0,0,0.4);
7+
background-color: rgba(0, 0, 0, 0.4);
88
}
99

1010
.navbar-brand {
@@ -23,30 +23,30 @@
2323
padding-bottom: 0.5rem;
2424
}
2525

26-
.nav-item:first-of-type {
27-
padding-top: 1rem;
28-
}
26+
.nav-item:first-of-type {
27+
padding-top: 1rem;
28+
}
2929

30-
.nav-item:last-of-type {
31-
padding-bottom: 1rem;
32-
}
30+
.nav-item:last-of-type {
31+
padding-bottom: 1rem;
32+
}
3333

34-
.nav-item ::deep a {
35-
color: #d7d7d7;
36-
border-radius: 4px;
37-
height: 3rem;
38-
display: flex;
39-
align-items: center;
40-
line-height: 3rem;
41-
}
34+
.nav-item ::deep a {
35+
color: #d7d7d7;
36+
border-radius: 4px;
37+
height: 3rem;
38+
display: flex;
39+
align-items: center;
40+
line-height: 3rem;
41+
}
4242

4343
.nav-item ::deep a.active {
44-
background-color: rgba(255,255,255,0.25);
44+
background-color: rgba(255, 255, 255, 0.25);
4545
color: white;
4646
}
4747

4848
.nav-item ::deep a:hover {
49-
background-color: rgba(255,255,255,0.1);
49+
background-color: rgba(255, 255, 255, 0.1);
5050
color: white;
5151
}
5252

Diff for: Mc2.CrudTest.Presentation/Front/Shared/SurveyPrompt.razor

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
// Demonstrates how a parent component can supply parameters
1414
[Parameter]
1515
public string Title { get; set; }
16-
}
16+
17+
}

Diff for: Mc2.CrudTest.Presentation/Front/_Imports.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
@using Microsoft.AspNetCore.Components.Web.Virtualization
77
@using Microsoft.AspNetCore.Components.WebAssembly.Http
88
@using Microsoft.JSInterop
9-
@using Mc2.CrudTest.Presentation.Front.Shared
9+
@using Mc2.CrudTest.Presentation.Front.Shared

Diff for: Mc2.CrudTest.Presentation/Front/wwwroot/css/app.css

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ a, .btn-link {
4242
z-index: 1000;
4343
}
4444

45-
#blazor-error-ui .dismiss {
46-
cursor: pointer;
47-
position: absolute;
48-
right: 0.75rem;
49-
top: 0.5rem;
50-
}
45+
#blazor-error-ui .dismiss {
46+
cursor: pointer;
47+
position: absolute;
48+
right: 0.75rem;
49+
top: 0.5rem;
50+
}

Diff for: Mc2.CrudTest.Presentation/Front/wwwroot/css/open-iconic/README.md

+10-13
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33

44
### Open Iconic is the open source sibling of [Iconic](http://useiconic.com). It is a hyper-legible collection of 223 icons with a tiny footprint&mdash;ready to use with Bootstrap and Foundation. [View the collection](http://useiconic.com/open#icons)
55

6-
7-
86
## What's in Open Iconic?
97

108
* 223 icons designed to be legible down to 8 pixels
11-
* Super-light SVG files - 61.8 for the entire set
9+
* Super-light SVG files - 61.8 for the entire set
1210
* SVG sprite&mdash;the modern replacement for icon fonts
1311
* Webfont (EOT, OTF, SVG, TTF, WOFF), PNG and WebP formats
1412
* Webfont stylesheets (including versions for Bootstrap and Foundation) in CSS, LESS, SCSS and Stylus formats
1513
* PNG and WebP raster images in 8px, 16px, 24px, 32px, 48px and 64px.
1614

17-
1815
## Getting Started
1916

2017
#### For code samples and everything else you need to get started with Open Iconic, check out our [Icons](http://useiconic.com/open#icons) and [Reference](http://useiconic.com/open#reference) sections.
@@ -23,25 +20,30 @@
2320

2421
#### Using Open Iconic's SVGs
2522

26-
We like SVGs and we think they're the way to display icons on the web. Since Open Iconic are just basic SVGs, we suggest you display them like you would any other image (don't forget the `alt` attribute).
23+
We like SVGs and we think they're the way to display icons on the web. Since Open Iconic are just basic SVGs, we suggest
24+
you display them like you would any other image (don't forget the `alt` attribute).
2725

2826
```
2927
<img src="/open-iconic/svg/icon-name.svg" alt="icon name">
3028
```
3129

3230
#### Using Open Iconic's SVG Sprite
3331

34-
Open Iconic also comes in a SVG sprite which allows you to display all the icons in the set with a single request. It's like an icon font, without being a hack.
32+
Open Iconic also comes in a SVG sprite which allows you to display all the icons in the set with a single request. It's
33+
like an icon font, without being a hack.
3534

36-
Adding an icon from an SVG sprite is a little different than what you're used to, but it's still a piece of cake. *Tip: To make your icons easily style able, we suggest adding a general class to the* `<svg>` *tag and a unique class name for each different icon in the* `<use>` *tag.*
35+
Adding an icon from an SVG sprite is a little different than what you're used to, but it's still a piece of cake. *Tip:
36+
To make your icons easily style able, we suggest adding a general class to the* `<svg>` *tag and a unique class name for
37+
each different icon in the* `<use>` *tag.*
3738

3839
```
3940
<svg class="icon">
4041
<use xlink:href="open-iconic.svg#account-login" class="icon-account-login"></use>
4142
</svg>
4243
```
4344

44-
Sizing icons only needs basic CSS. All the icons are in a square format, so just set the `<svg>` tag with equal width and height dimensions.
45+
Sizing icons only needs basic CSS. All the icons are in a square format, so just set the `<svg>` tag with equal width
46+
and height dimensions.
4547

4648
```
4749
.icon {
@@ -62,17 +64,14 @@ To learn more about SVG Sprites, read [Chris Coyier's guide](http://css-tricks.c
6264

6365
#### Using Open Iconic's Icon Font...
6466

65-
6667
##### …with Bootstrap
6768

6869
You can find our Bootstrap stylesheets in `font/css/open-iconic-bootstrap.{css, less, scss, styl}`
6970

70-
7171
```
7272
<link href="/open-iconic/font/css/open-iconic-bootstrap.css" rel="stylesheet">
7373
```
7474

75-
7675
```
7776
<span class="oi oi-icon-name" title="icon name" aria-hidden="true"></span>
7877
```
@@ -85,7 +84,6 @@ You can find our Foundation stylesheets in `font/css/open-iconic-foundation.{css
8584
<link href="/open-iconic/font/css/open-iconic-foundation.css" rel="stylesheet">
8685
```
8786

88-
8987
```
9088
<span class="fi-icon-name" title="icon name" aria-hidden="true"></span>
9189
```
@@ -102,7 +100,6 @@ You can find our default stylesheets in `font/css/open-iconic.{css, less, scss,
102100
<span class="oi" data-glyph="icon-name" title="icon name" aria-hidden="true"></span>
103101
```
104102

105-
106103
## License
107104

108105
### Icons

0 commit comments

Comments
 (0)