Upgrade to .NET 6 and update all dependencies
This commit is contained in:
parent
2356fbab4f
commit
28747dfe5b
17 changed files with 698 additions and 58 deletions
|
|
@ -10,7 +10,7 @@ namespace Start_Tests.Client.Store {
|
|||
|
||||
[TestMethod]
|
||||
public void OnFetchContainersList() {
|
||||
base.Store.Dispatch(new FetchContainerListAction());
|
||||
base.Dispatcher.Dispatch(new FetchContainerListAction());
|
||||
|
||||
Assert.IsTrue(base.State.Value.ContainerListState.IsLoadingContainersList);
|
||||
Assert.AreEqual(0, this.State.Value.ContainerListState.Containers.Count);
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ namespace Start_Tests.Client.Store {
|
|||
public abstract class UnitTestWithFluxor {
|
||||
protected IServiceProvider ServiceProvider { get; set; }
|
||||
protected IStore Store { get; set; }
|
||||
protected IDispatcher Dispatcher { get; set; }
|
||||
protected IState<RootState> State { get; set; }
|
||||
// Add child states in the individual tests
|
||||
|
||||
|
|
@ -30,6 +31,7 @@ namespace Start_Tests.Client.Store {
|
|||
.AddScoped<IBookmarkContainersApi>(sp => new MockBookmarkContainersApi());
|
||||
|
||||
this.Store = this.BunitTc.Services.GetRequiredService<IStore>();
|
||||
this.Dispatcher = this.BunitTc.Services.GetRequiredService<IDispatcher>();
|
||||
this.State = this.BunitTc.Services.GetRequiredService<IState<RootState>>();
|
||||
this.Store.InitializeAsync().Wait();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue