예제 #1
0
            public void QueryResultToFeatureVm_Should_Return_FeatureVm()
            {
                string id         = "1";
                string name       = "Test Feature";
                string userId     = "testuser";
                string ticket     = "T1";
                bool   active     = true;
                bool   enabled    = true;
                int    strategyId = 0;

                GetFeatureQueryResult result = new GetFeatureQueryResult(id, name, userId, ticket, active, enabled, strategyId);

                FeatureVm actual = FeatureModelHelper.QueryResultToFeatureVm(result);

                Assert.AreEqual(id, actual.Id);
                Assert.AreEqual(name, actual.Name);
                Assert.AreEqual(userId, actual.UserId);
                Assert.AreEqual(ticket, actual.Ticket);
                Assert.AreEqual(active, actual.IsActive);
                Assert.AreEqual(enabled, actual.IsEnabled);
                Assert.AreEqual(strategyId, actual.StrategyId);
            }
예제 #2
0
            public void QueryResultToFeatureEditVm_Should_Throw_Exception_When_Result_Is_Null()
            {
                GetFeatureQueryResult result = null;

                FeatureVm actual = FeatureModelHelper.QueryResultToFeatureVm(result);
            }