public void Should_generate_base62_string(long id, string expected) { var keyGeneratorService = new KeyGeneratorService(); var key = keyGeneratorService.GenerateKey(id); Assert.Equal(expected, key); }
public UsersController(ChronicleContext chronicleContext, KeyGeneratorService keyGenerator) { this.chronicleContext = chronicleContext; this.keyGenerator = keyGenerator; }