Skip to content

Commit

Permalink
fix the merge
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenTCramer committed Aug 15, 2021
1 parent 482ee09 commit 8e0dac7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
22 changes: 10 additions & 12 deletions Tests/TestApp/Client/Features/Counter/Pages/CounterPage.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@namespace TestApp.Client.Pages
@page "/counter"
@using TestApp.Client.Features.EventStream.Components
@using TestApp.Client.Features.EventStream.Components
@inherits BaseComponent

<h1>Counter Page</h1>
Expand All @@ -19,7 +19,7 @@
<br />
<hr />
<h6>Click below to send a Change Route Request that should take back to home page.</h6>
<button class="btn btn-primary" data-qa="ChangeRoute" @onclick=ChangeRouteToHome>Change Route to Home</button>
<button class="btn btn-primary" data-qa="ChangeRoute" @onclick=ChangeRouteToHome>Change Route to Home</button>

<br />
<hr />
Expand All @@ -28,22 +28,20 @@

<br />
<hr />
<h6>Click below to Throw Client Side.</h6>
<h6>Click below to Throw Client Side.</h6>
<button class="btn btn-primary" data-qa="ThrowException" @onclick=SendThrowExceptionAction>Send Throw Exception Action</button>

<h6>Click below to Throw Server Side.</h6>
<h6>Click below to Throw Server Side.</h6>
<button class="btn btn-primary" data-qa="ThrowException" @onclick=SendThrowServerSideExceptionAction>Send Throw Exception Action</button>

<br />
<hr />

<br />
<hr />
<h6>EventStream is an example of middleware. It adds each action to list.</h6>
<EventStream />

<br />
<hr />
<EditForm Model="RecordForm" OnValidSubmit="HandleValidSubmit">
<CustomInput @bind-Value="RecordForm.Amount"
ValidationFor="@(() => RecordForm.Amount)"
Label="Custom Input.">
</CustomInput>
<EditForm Model=@RecordForm OnValidSubmit=@HandleValidSubmit>
<CustomInput @bind-Value="RecordForm.Amount" ValidationFor="@(() => RecordForm.Amount)" Label="Custom Input.">
</CustomInput>
</EditForm>
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
namespace TestApp.Client.Pages
{
using BlazorState.Features.Routing;
using System;
using System.Threading.Tasks;
using TestApp.Client.Features.Base.Components;
using TestApp.Client.Models;
using static TestApp.Client.Features.Counter.CounterState;

public partial class CounterPage : BaseComponent
Expand All @@ -16,5 +18,11 @@ protected async Task SendThrowExceptionAction() =>
protected async Task SendThrowServerSideExceptionAction() =>
await Mediator.Send(new ThrowServerSideExceptionAction());

public Record RecordForm { get; set; } = new Record();
protected void HandleValidSubmit()
{
Console.WriteLine("Valid Submit");
}

}
}

0 comments on commit 8e0dac7

Please sign in to comment.