Exemplo n.º 1
0
        public async Task FetchCommonUserDetailsTest()
        {
            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.FetchCommonUserDetails(MockRequest.Object)) as ObjectResult;

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