Esempio n. 1
0
        public async void AddStaff()
        {
            var insertLevel = await _levelService.Add(new DatabaseModel.Level("Super Admin", true, true, true));

            await _staffRepoService.Add("someSteamId", insertLevel.Id);

            var staff = await _staffRepoService.Find("someSteamId");

            Assert.Equal(staff.Level, insertLevel.Id);
        }
Esempio n. 2
0
        public async void AddStaffSuccess()
        {
            var insertLevel = await _levelService.Add(new DatabaseModel.Level("Super Admin", true, true, true));

            Assert.True(insertLevel.Id > 0);
            Assert.Equal("Super Admin", insertLevel.Name);
            Assert.True(insertLevel.Admin);
            Assert.True(insertLevel.Chat);
            Assert.True(insertLevel.Ticket);
        }