public void InsertTest() { IBallRepository ballRepository = ServiceLocator.Current.GetInstance <IBallRepository>(); var ball = new BallEntity("Football", "Blue"); var id = ballRepository.AddGet(ball); ball.SetId(id); BallEntity result = ballRepository.FindBy(ball.Id); result.ShouldBeEquivalentTo(ball); }