public void PasswordResetRequestShouldSucceed() { const string expectedRequestUrl = ClientModuleFunctionalTestingUtilities.SANDBOX_URL_PREFIX + "/v14/passwords"; const string expectedRequestBody = "{\"email\": \"[email protected]\"}"; RestResponse expectedResponse = new RestResponse { StatusCode = HttpStatusCode.NoContent }; IModifyUser client = ClientModuleFunctionalTestingUtilities.GetMockedLevelUpModule <IModifyUser, PasswordResetRequest>( expectedResponse, expectedRequestBody, expectedRequestUrl); client.PasswordResetRequest("*****@*****.**"); }
public void PasswordResetRequestShouldSucceed() { const string expectedRequestUrl = "https://sandbox.thelevelup.com/v14/passwords"; const string expectedRequestBody = "{\"email\": \"[email protected]\"}"; RestResponse expectedResponse = new RestResponse { StatusCode = HttpStatusCode.NoContent }; IModifyUser client = ClientModuleUnitTestingUtilities.GetMockedLevelUpModule <IModifyUser, PasswordResetRequest>( expectedResponse, expectedRequestBody, expectedRequestUrl); client.PasswordResetRequest("*****@*****.**"); }