public static ProductProperty CopyFrom(this ProductProperty dest, ProductProperty source) { dest.Brend = source.Brend; dest.Capacity = source.Capacity; dest.Country = source.Country; dest.Weight = source.Weight; return dest; }
public ProductProperty ProductPropertyCreateTest() { var property = new ProductProperty { Brend = "LG", Capacity = "10l", Weight = "100g", Country = "Ukraine" }; Repository.Data.Save(property); Assert.True(property.Id != Guid.Empty); return property; }