public DatabaseFixture()
        {
            var options = new DbContextOptionsBuilder <AuthServiceDbContext>().UseInMemoryDatabase(databaseName: "UserInfoDB").Options;

            dbContext = new AuthServiceDbContext(options);

            // Insert test user data
            dbContext.UserInfo.Add(new UserDetail {
                UserId = "Thirumalai123", FirstName = "Thirumalai", LastName = "Vasan", Password = "******"
            });
            dbContext.UserInfo.Add(new UserDetail {
                UserId = "Rathish123", FirstName = "Rathish", LastName = "Rakshithan", Password = "******"
            });
            dbContext.UserInfo.Add(new UserDetail {
                UserId = "Test123", FirstName = "Test", LastName = "Test", Password = "******"
            });

            dbContext.SaveChanges();
        }
 public int Add(UserDetail user)
 {
     authServiceDbContext.UserInfo.Add(user);
     return(authServiceDbContext.SaveChanges());
 }