public void CopyAttrobutesToInstance() { int producerId = 1; string producerCountry = "BL"; string producerName = "Blem"; int requestId = 1; string requestCountry = "SK"; UpdateProducerRequest request = new UpdateProducerRequest { Id = requestId, Country = requestCountry }; Producer producer = new Producer { Id = producerId, Country = producerCountry, Name = producerName, }; CopyUtil.CopyAttributesToInstance(request, producer); Assert.AreEqual(requestId, producer.Id); Assert.AreEqual(requestCountry, producer.Country); Assert.IsNull(producer.Name); Assert.IsNull(producer.File); Assert.IsNull(producer.Products); Assert.IsNull(producer.FileId); }