Esempio n. 1
0
        public async Task FetchAdminUserDetailsTest()
        {
            SetupServices();
            var MockRequest = new Mock <GeneralFetchRequest>();

            MockRequest.Object.Code = "";
            ActionResponse res = new ActionResponse(StatusCodes.Status500InternalServerError);

            var registrationController = new RegistrationController(ServiceProvider.GetRequiredService <Registration_BL>());
            //Act
            var result = await(registrationController.FetchAdminUserDetails(MockRequest.Object)) as ObjectResult;

            //Assert
            Assert.Equal(res.StatusCode, result.StatusCode);
        }