Beispiel #1
0
        public void BadIdShouldReturnNullTest()
        {
            var sut    = new ConfigsController();
            var result = sut.GetById(-1);

            Assert.IsNull(result);
        }
Beispiel #2
0
        public void GoodIdShouldReturnResultTest()
        {
            var id     = 1;
            var sut    = new ConfigsController();
            var result = sut.GetById(id);

            Assert.IsNotNull(result);
            Assert.AreEqual(id, result.Id);
            Assert.IsNotNull(result.Consultants);
            Assert.IsTrue(result.Consultants.Count > 0);
        }