Ejemplo n.º 1
0
        public async Task Get_Should_Succeed()
        {
            foreach (var permissionId in Enum.GetValues(typeof(Permission)))
            {
                var permission = await PermissionsDAO.Get(DbConnection, (int)permissionId);

                Assert.Equal(permission, (Permission)permissionId);
            }
        }
Ejemplo n.º 2
0
        /// <summary> Default constructor. </summary>
        /// <remarks> Ranaya, 24/05/2017. </remarks>

        public ParameterRequestService()
        {
            mObjParameterRequestDAO = new TableDAO <ParameterRequest>();
            mObjPermissionsDAO      = new PermissionsDAO();
        }
Ejemplo n.º 3
0
        /// <summary> Default constructor. </summary>
        /// <remarks> Ranaya, 24/05/2017. </remarks>

        public PortRequestService()
        {
            mObjPortRequestDAO = new TableDAO <PortRequest>();
            mObjPermissionsDAO = new PermissionsDAO();
        }
Ejemplo n.º 4
0
        /// <summary> Default constructor. </summary>
        /// <remarks> Ranaya, 24/05/2017. </remarks>

        public DestinationRequestService()
        {
            mObjDestinationRequestDAO = new TableDAO <DestinationRequest>();
            mObjPermissionsDAO        = new PermissionsDAO();
        }