private void SubmitMCreateEntityPriorityParseShouldWork() { const DataSourcePriority expected = DataSourcePriority.Trusted; var obj = new SubmitM { Priority = expected.ToString() }; var actual = obj.CreateEntity(_user.Id).Priority; Assert.Equal(expected, actual); }
private void SubmitMUpdateEntityPriorityParseShouldWork() { const DataSourcePriority expected = DataSourcePriority.Trusted; var actual = new DataSource { Priority = DataSourcePriority.Trusted }; new SubmitM { Priority = expected.ToString() }.UpdateEntity(actual, _user.Id); Assert.Equal(expected, actual.Priority); }