How to add data into one-to-one relationship
Hello world!
I'm junior c# developer whose inmediate task is create a function that add Students and Teacher into one Subject. But I dont know where Can I start.
Lets' see the Subject model:
And this is the Teacher Model:
I must to mention that the project methodology is TDD, so I have to unit test first and later refactor if previus step are ok. But the problem is I dont know how could I test this function
So, if anyone could help me with a advice or link documentary, Id be really grateful!
I'm junior c# developer whose inmediate task is create a function that add Students and Teacher into one Subject. But I dont know where Can I start.
Lets' see the Subject model:
And this is the Teacher Model:
I must to mention that the project methodology is TDD, so I have to unit test first and later refactor if previus step are ok. But the problem is I dont know how could I test this function
So, if anyone could help me with a advice or link documentary, Id be really grateful!




