public void Indicates_Selected_TypeOfFlow()
        {
            _tofService.Setup(m => m.GetList()).Returns(new List <TypeOfFlow>()
            {
                new TypeOfFlow()
                {
                    TypeID = 1, TypeName = "Input"
                },
                new TypeOfFlow()
                {
                    TypeID = 2, TypeName = "Output"
                }
            });
            NavTypeOfFlowController target = new NavTypeOfFlowController(_tofService.Object);

            var result = ((PartialViewResult)target.List()).Model as IEnumerable <TypeOfFlow>;

            Assert.IsNotNull(result);
        }
        public void Can_Create_TypesOfFlow()
        {
            _tofService.Setup(m => m.GetList()).Returns(new List <TypeOfFlow>()
            {
                new TypeOfFlow()
                {
                    TypeID = 1, TypeName = "Input"
                },
                new TypeOfFlow()
                {
                    TypeID = 2, TypeName = "Output"
                }
            });
            NavTypeOfFlowController target = new NavTypeOfFlowController(_tofService.Object);

            var result = target.List().ViewData.Model as List <TypeOfFlow>;

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Count != 0);
            Assert.AreEqual(result[0].TypeID, 1);
            Assert.AreEqual(result[1].TypeID, 2);
        }