public void GetDropDowns_CheckCount()
        {
            IDropdownRepository repository = new MockDropdownRepository();
            DropdownsController controller = new DropdownsController(repository);

            JsonResult <List <DropDownItem> > result = controller.GetPeriods() as JsonResult <List <DropDownItem> >;

            Assert.IsNotNull(result.Content);
            Assert.AreNotEqual(0, result.Content.Count);
            Assert.AreEqual("01/2009", result.Content[0].TextDesc);
        }
        public void can_generate_monthly_periods_from_controller()
        {
            IDropdownRepository repository = new MockDropdownRepository();
            DropdownsController controller = new DropdownsController(repository);

            JsonResult <List <DropDownItem> > result = controller.GetPeriods() as JsonResult <List <DropDownItem> >;

            Assert.IsNotNull(result.Content);
            Assert.AreNotEqual(0, result.Content.Count);
            Assert.AreEqual("01/2009", result.Content[0].Text);
        }