public void GetUserTestById_WithInCorrectData_NotFoundExceptionMustBeThrown()
        {
            var             uow = new Mock <IUnitOfWork>();
            UserTestService uts = new UserTestService(uow.Object);

            uow.Setup(x => x.UserTests.Get(It.IsAny <string>())).Returns((UserTest)null);
            uow.Setup(x => x.Users.Get(It.IsAny <string>())).Returns(new User());
            uow.Setup(x => x.Tests.Get(It.IsAny <string>())).Returns(new Test());

            Assert.Throws <NotFoundException>(() =>
            {
                var actual = uts.GetUserTestById(It.IsAny <string>());
            });
        }
        public void GetUserTestById_WithCorrectData_UserTestMustBeReceived()
        {
            var             uow = new Mock <IUnitOfWork>();
            UserTestService uts = new UserTestService(uow.Object);

            uow.Setup(x => x.UserTests.Get(It.IsAny <string>())).Returns(new UserTest());
            uow.Setup(x => x.Users.Get(It.IsAny <string>())).Returns(new User());
            uow.Setup(x => x.Tests.Get(It.IsAny <string>())).Returns(new Test());

            var expected = new UserTest().UserTestId;
            var userTest = uts.GetUserTestById(It.IsAny <string>());
            var actual   = userTest.GetType().GetProperty("UserTestId").GetValue(userTest, null);

            Assert.Equal(expected, actual);
        }