-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
namespace JournalApp.Tests; | ||
|
||
public class EditCategoryTests : JaTestContext | ||
{ | ||
public override async Task InitializeAsync() | ||
{ | ||
await base.InitializeAsync(); | ||
|
||
AddDbContext(); | ||
} | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task EditExistingCategory() | ||
{ | ||
var category = new DataPointCategory | ||
{ | ||
Guid = Guid.NewGuid(), | ||
Type = PointType.Note, | ||
Name = "My note", | ||
|
||
}; | ||
|
||
var dialogService = Services.GetService<IDialogService>(); | ||
var cut = RenderComponent<MudDialogProvider>(); | ||
|
||
//var parameters = new DialogParameters<EditCategoryDialog> { { x => x.Group, category.Group }, { x => x.Category, category } }; | ||
//var result = await DialogService.Show<EditCategoryDialog>(parameters).Result; | ||
|
||
IDialogReference dialogReference = null; | ||
await cut.InvokeAsync(() => dialogReference = dialogService?.Show<EditCategoryDialog>()); | ||
} | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task EditNewCategory() { } | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task EditExistingMedication() { } | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task EditNewMedication() { } | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task DeleteCategory() { } | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task BackButtonSaves() { } | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task SaveButtonSaves() { } | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task CancelButtonCancels() { } | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace JournalApp.Tests; | ||
|
||
public class ImportExportTests : JaTestContext | ||
{ | ||
public override async Task InitializeAsync() | ||
{ | ||
await base.InitializeAsync(); | ||
|
||
AddDbContext(); | ||
} | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task EverythingInBackupIsImported() { } | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task ExportFormatHasNotChanged() { } | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace JournalApp.Tests; | ||
|
||
public class IndexTests : JaTestContext | ||
{ | ||
public override async Task InitializeAsync() | ||
{ | ||
await base.InitializeAsync(); | ||
|
||
AddDbContext(); | ||
} | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task CanSwitchDays() { } | ||
Check warning on line 13 in JournalApp.Tests/IndexTests.cs
|
||
|
||
[Fact(Skip = "Stub")] | ||
public async Task SwitchDaysPersistsData() { } | ||
Check warning on line 16 in JournalApp.Tests/IndexTests.cs
|
||
|
||
[Fact(Skip = "Stub")] | ||
public async Task CannotGoIntoFuture() { } | ||
Check warning on line 19 in JournalApp.Tests/IndexTests.cs
|
||
|
||
[Fact(Skip = "Stub")] | ||
public async Task OpenCalendar() { } | ||
Check warning on line 22 in JournalApp.Tests/IndexTests.cs
|
||
|
||
[Fact(Skip = "Stub")] | ||
public async Task HideTodaysNotes() { } | ||
Check warning on line 25 in JournalApp.Tests/IndexTests.cs
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace JournalApp.Tests; | ||
|
||
public class ManageCategoriesTests : JaTestContext | ||
{ | ||
public override async Task InitializeAsync() | ||
{ | ||
await base.InitializeAsync(); | ||
|
||
AddDbContext(); | ||
} | ||
|
||
[Fact(Skip = "Stub")] | ||
public async Task ClickCategoryOpensEditorAndUpdatesList() { } | ||
Check warning on line 13 in JournalApp.Tests/ManageCategoriesTests.cs
|
||
|
||
[Fact(Skip = "Stub")] | ||
public async Task ClickPlusOpensEditorAndAddsNewCategoryToList() { } | ||
Check warning on line 16 in JournalApp.Tests/ManageCategoriesTests.cs
|
||
|
||
[Fact(Skip = "Stub")] | ||
public async Task ClickCategoryOpensEditor() { } | ||
Check warning on line 19 in JournalApp.Tests/ManageCategoriesTests.cs
|
||
|
||
[Fact(Skip = "Stub")] | ||
public async Task CannotEditReadOnlyCategories() { } | ||
Check warning on line 22 in JournalApp.Tests/ManageCategoriesTests.cs
|
||
|
||
[Fact(Skip = "Stub")] | ||
public async Task Reorder() { } | ||
Check warning on line 25 in JournalApp.Tests/ManageCategoriesTests.cs
|
||
} |