public static void InitialisationTests(TestContext context) { service = new ServerAccountService(); // Ajout d'un compte pour les tests // Cela constitue aussi un test ! ServerAccountModel serverAccount = new ServerAccountModel() { ServerId = 0, UserLogin = "******", Password = "******" }; DatabaseServerUser databaseServerUser = service.AddAccount(serverAccount); Assert.IsNotNull(databaseServerUser); }
public AccountsController(ServiceEpsiContext context) { _service = new ServerAccountService(context); }
public ServerAccountsController(LogService logservice, ServerAccountService service) { _service = service; _logService = logservice; }