I'm following the Learn Spring 5 etc on udemy and I'm at the part where we test our application. Everything worked fine till now, i was able to connect to the postgreSQL database and all but now I'm stuck at this test failing since 2 days.
I don't understand what is causing the Test to fail. The application run but the test doesn't. Here it is the test class:
package com.ghevi.dao;
import com.ghevi.pma.ProjectManagementApplication;
import com.ghevi.pma.dao.ProjectRepository;
import com.ghevi.pma.entities.Project;
import org.junit.Test;
import …
Run Code Online (Sandbox Code Playgroud) 有没有办法在特定于平台的代码中注入服务,例如MainActivity.cs
?我认为 Xamarin 用于DependencyService
此目的。也可以将它们注入后台Services
吗Broadcast Receivers
?
我目前试图做的是更新它们,但我想知道目前是否有更好的解决方案。据我了解,平台特定代码中的 DI 容器与您在 中使用的主要容器不同MauiProgram.cs
,我见过他们从头开始实现一个的示例。