public void GetComponentInterface_ComponentExists_ShouldThrowNotFoundException()
        {
            //Arrange
            RepositoryMock.Setup(x => x.Query(It.IsAny <PersistenceAwareSpecification <ComponentInterface> >()))
            .Returns(new List <ComponentInterface>().AsAsyncQueryable());

            //Assert
            UtilsAssert.AssertThrowsAggregateException <NotFoundException, ComponentInterfaceVO>(
                () => Service.GetComponentInterface(Guid.NewGuid()).Result);
        }
        public void GetComponentInterfaces_SortByNotExistingColumn_ShouldThrowInvalidInputException()
        {
            //Arrange
            FillRepositoryWithFakes(ListSize);
            var requestParameters = new TableParameters(new PagingParameters(0, 5),
                                                        new OrderingParameters(Guid.NewGuid().ToString(), SortDirection.Ascending));

            //Assert
            UtilsAssert.AssertThrowsAggregateException <InvalidInputException>(
                () => Service.GetComponentInterfaces(requestParameters).Wait());
        }