Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }