コード例 #1
0
        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);
        }
コード例 #2
0
 public AccountsController(ServiceEpsiContext context)
 {
     _service = new ServerAccountService(context);
 }
コード例 #3
0
 public ServerAccountsController(LogService logservice, ServerAccountService service)
 {
     _service = service; _logService = logservice;
 }