public void GetLogDataService_GetAuthorizationContextForService_Returns_Administrator()
        {
            //------------Setup for test-------------------------
            var getLogData = new GetLogDataService();
            //------------Execute Test---------------------------
            var authorizationContextForService = getLogData.GetAuthorizationContextForService();

            //------------Assert Results-------------------------
            Assert.AreEqual(AuthorizationContext.Administrator, authorizationContextForService);
        }
예제 #2
0
        public void GetAuthorizationContextForService_ShouldReturnContext()
        {
            //------------Setup for test--------------------------
            var getLogDataService = new GetLogDataService();

            //------------Execute Test---------------------------
            var resId = getLogDataService.GetAuthorizationContextForService();

            //------------Assert Results-------------------------
            Assert.AreEqual(AuthorizationContext.Administrator, resId);
        }