public static ApiContract.v1.Translation ToContract(this Model.Translation source) => new ApiContract.v1.Translation { LanguageKey = source.LanguageKey, Key = source.Key, ProjectKey = source.ProjectKey, Text = source.Text };
internal static ExportTranslation Map(this Model.Translation source) { return(new ExportTranslation { Key = source.Key, LanguageKey = source.LanguageKey, ProjectKey = source.ProjectKey, Text = source.Text }); }
public void It_Can_Map_Null_Pluralizations_To_Contract() { // Arrange var translation = new Model.Translation(); // Act var translationContract = translation.ToContract(); // Assert Assert.NotNull(translationContract); }