A 17-year-old Michigan boy testified in court on Thursday, describing how his 26-year-old married substitute teacher flirted with him on social media and then lured him to her home to have sex on two different occasions.

Allyson Brittany Moran, a former substitute teacher and soccer coach at Stockbridge High School, was arrested last month for allegedly engaging in a sexual relationship with one of her students.

Moran appeared in court on Thursday for a preliminary hearing, during which her victim addressed the court.

After hearing the disturbing story, the judge decided that there was enough evidence to send the case to trial.

Allyson Moran, 26 (pictured), appeared in court on Thursday for a preliminary hearing. She stands accused of sexually assaulting a 17-year-old student

The victim told the court that Moran flirted with him on social media, then lured him to her house to have sex on two occasions in April. Above, Stockbridge High School, where Moran worked as a substitute teacher last year and met the boy

Moran faces up to 15 years in prison if she's convicted on the charges of third-degree criminal sexual conduct involving a student and fourth-degree criminal sexual conduct involving a student.

The teen told the court that he and Moran became close in the Fall of 2016, when she was on a one-year contact to sub at the school.

He says he often spent lunch and after school hours with Moran in her classroom, sometimes alone and sometimes with other students.

The relationship grew sexual when they started to contact each other on Snapchat in March 2017. Snapchat is social media app that lets users send each other pics that are deleted after a few seconds.

'At first it was just normal... asking how I was doing,' he said, but later they 'started talking more in a sexual manner,' and eventually they started sending each other nude photos of themselves.

Moran was arrested in September, after moving to Decatur, Illinois

In April, during Spring Break, the victim says Moran invited him over to her house in Danville. She instructed him to park far away from the house so that the neighbors wouldn't see his car.

Moran's paranoia may have stemmed from the fact that she was likely still married at the time.

An announcement in the Herald-Review newspaper shows she married a Ryan Moran in June 2013, and public records show the couple were living together at the Danville home at the time of the rendez-vous.

The victim says Moran met him at the door in a robe, and then led him to a downstairs 'man cave' where she stripped and kissed him.

After that, he says she led him to an upstairs bedroom.

'I was so nervous, I was kind of shaky,' he said. 'Then we just talked for a little bit.'

She then assaulted him.

The victim says he was invited back to the home a day or two later to have sex again, but that was the final time they engaged in intercourse.

The victim said he has sex with Moran, left, two times at her house in Danville

The first time they had sex, the boy says Moran greeted him at the door in a robe and then led him to a downstairs 'man cave' where they made out

In July, the victim says he told his girlfriend about the sexual encounters and a month later a family member reported Moran (left) to the police

After Spring Break, the two continued to message each other on Snapchat 'off and on'.

In July, the victim says he told his girlfriend about the sexual encounters and a month later a family member reported Moran to the police.

Moran was arrested last month in Decatur, Illinois, where she moved in July. Public records show her husband moved to South Dakota in June, so it's unclear if they are still married.

During her time teaching at Stockbridge, she wasn't officially on the school's payroll. She was hired by an outside teaching staffing company to work for the school for the 2016-2017 academic year.

Moran is due back in Ingraham County Circuit court on November 8 for an arraignment.