Exemple #1
0
        public void JsonSerialization_ReturnsCorrectJson()
        {
            var response = new SetCredentialsResponse(MessageResponseCode.Success);

            var json = TestUtilities.Serialize(response);

            Assert.Equal("{\"ResponseCode\":\"Success\"}", json);
        }
Exemple #2
0
        public void Constructor_InitializesResponseCodeProperty()
        {
            var response = new SetCredentialsResponse(MessageResponseCode.Success);

            Assert.Equal(MessageResponseCode.Success, response.ResponseCode);
        }