public void SearchForIssuesThrowsNullReferenceException287()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    s = this.SearchForIssues(issueTracker, (string[])null);
}
public void RegisterUserThrowsArgumentNullException141()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    s = this.RegisterUser(issueTracker, "", (string)null, (string)null);
}
public void LoginUserThrowsArgumentNullException702()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    s = this.LoginUser(issueTracker, (string)null, (string)null);
}
public void RemoveIssue158()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    s = this.RemoveIssue(issueTracker, 0);
    Assert.AreEqual<string>("There is no currently logged in user", s);
    Assert.IsNotNull((object)issueTracker);
}
public void GetMyComments811()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    s = this.GetMyComments(issueTracker);
    Assert.AreEqual<string>("There is no currently logged in user", s);
    Assert.IsNotNull((object)issueTracker);
}
public void LoginUser290()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    s = this.LoginUser(issueTracker, "", (string)null);
    Assert.AreEqual<string>("A user with username  does not exist", s);
    Assert.IsNotNull((object)issueTracker);
}
 public void RegisterUser414()
 {
     IssueTracker issueTracker;
     string s;
     issueTracker = new IssueTracker();
     s = this.RegisterUser(issueTracker, "", "", "");
     Assert.AreEqual<string>("User  registered successfully", s);
     Assert.IsNotNull((object)issueTracker);
 }
 public void RegisterUser678()
 {
     IssueTracker issueTracker;
     string s;
     issueTracker = new IssueTracker();
     s = this.RegisterUser(issueTracker, (string)null, "", (string)null);
     Assert.AreEqual<string>("The provided passwords do not match", s);
     Assert.IsNotNull((object)issueTracker);
 }
public void AddComment345()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    s = this.AddComment(issueTracker, 0, (string)null);
    Assert.AreEqual<string>("There is no currently logged in user", s);
    Assert.IsNotNull((object)issueTracker);
}
public void SearchForIssues161()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    string[] ss = new string[2];
    s = this.SearchForIssues(issueTracker, ss);
    Assert.AreEqual<string>("There are no issues matching the tags provided", s);
    Assert.IsNotNull((object)issueTracker);
}
Пример #11
0
        public static IssueTracker Create()
        {
            IssueTracker issueTracker = new IssueTracker();
            return issueTracker;

            // TODO: Edit factory method of IssueTracker
            // This method should be able to configure the object in all possible ways.
            // Add as many parameters as needed,
            // and assign their values to each field by using the API.
        }
public void CreateIssue873()
{
    IssueTracker issueTracker;
    string s;
    issueTracker = new IssueTracker();
    s = this.CreateIssue(issueTracker, (string)null, 
                         (string)null, (IssuePriority)0, (string[])null);
    Assert.AreEqual<string>("There is no currently logged in user", s);
    Assert.IsNotNull((object)issueTracker);
}
        public static void Main()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            IDatabase database = new Database();

            IUserTracker userTracker = new UserTracker(database);

            IIssueTracker issueTracker = new IssueTracker(database);

            IDispatcher dispatcher = new Dispatcher(issueTracker, userTracker);

            IInputReader reader = new ConsoleReader();

            IOutputWriter writer = new ConsoleWriter
            {
                AutoFlush = true
            };

            IEngine engine = new Engine(dispatcher, reader, writer);
            engine.Run();
        }
Пример #14
0
 public IssueTracker Constructor()
 {
     IssueTracker target = new IssueTracker();
     return target;
     // TODO: add assertions to method IssueTrackerTest.Constructor()
 }