Beispiel #1
0
        public void CreateEncodeDataTest()
        {
            //Arrange
            const TypeOfTask typeOfTask = TypeOfTask.Video;

            var data         = new Mock <IEncodeData>();
            var mockResponse = new Mock <IRestResponse>();

            _deserializer.Setup(m => m.EncodeDataDeserialize(mockResponse.Object, typeOfTask)).Returns(data.Object);

            //Act
            var encodeData = _helper.CreateEncodeData(mockResponse.Object, typeOfTask);

            //Assert
            Assert.AreEqual(data.Object, encodeData);
        }