public void GetChildById_ReturnsChild() { using (var context = new TestHedwigContextProvider().Context) { // If a child exists string name = "First"; var child = ChildHelper.CreateChild(context, name); // When the repository is queried for the child: var childRepo = new ChildRepository(context); var res = childRepo.GetChildById(child.Id); // Then Assert.Equal(name, res.FirstName); } }