public async Task Setup() { // Arrange var datnekContext = await DatnekContextProvider.GetDatabaseContext(); usersService = new UsersService(datnekContext, Options.Create(new AppSettings())); usersService.setAppSettings(new AppSettings() { Secret = "datnek-language-adb8-4ce5-aa49-7test2020256" }); user = new User() { slug = "123", username = "******", email = "*****@*****.**", password = "******" }; }
public async Task Setup() { // Arrange var datnekContext = await DatnekContextProvider.GetDatabaseContext(); languagesService = new LanguagesService(datnekContext); var user = await GetUser(datnekContext); language = new Language() { slug = "123", title = "en", speak = 2, read = 3, understand = 2, userId = user.id, user = new User(), createdAt = DateTime.Now, updatedAt = DateTime.Now }; }