Beispiel #1
0
        public void AssistantListNullTest()
        {
            // Arrange
            AssistantData assistantList = new AssistantData();

            // Act
            var result = assistantList.GetAssistantsList().Count > 0;

            // Assert
            Assert.IsTrue(result);
        }
Beispiel #2
0
        public ActionResult AssistantList()
        {
            if (Session["userId"] == null)
            {
                return(Redirect("~"));
            }
            AssistantData assistantdData = new AssistantData();
            var           assistantsList = assistantdData.GetAssistantsList();

            return(View(assistantsList));
        }
Beispiel #3
0
        public IssueType(AssistantData data)
        {
            Name        = "Issue";
            Description = "Issues you have.";

            Field(h => h.Id).Description("The id of the issue.");
            Field(h => h.Title, nullable: true).Description("The name of the issue.");
            Field(h => h.Description, nullable: true).Description("The description of the issue.");
            Field(h => h.Date, nullable: true).Description("The date of the issue.");
            Field(h => h.Link, nullable: true).Description("The link of the issue.");

            Interface <EntityInterface>();
        }