public void WhenRequestingAuthorisation_ReturnsAuthorisationAcceptedResponse()
        {
            var retriever = new ResponseFileRetriever();

            var response = retriever.GetResponse(RequestType.Authorisation);
            var datatypes = response.GetElementsByTagName("ns:DPSrequestTokenResult");

            Assert.IsNotEmpty(datatypes);
        }
        public void ReturnsAMessageWithTheCorrectDataTypeWhenRequestingA(RequestType requestType)
        {
            var retriever = new ResponseFileRetriever();

            var response = retriever.GetResponse(requestType);
            var datatypes = response.GetElementsByTagName("DataType");
            var dataType = "WRONG";

            if (datatypes.Count > 0)
                dataType = datatypes.Item(0).InnerText;

            Assert.AreEqual(requestType.ToString(), dataType);
        }