package com.atlassian.bitbucket.task;

import javax.annotation.Nonnull;

public class TaskTestUtils {

    public static TaskCount createTaskCount(final long open, final long resolved) {
        return new TaskCount() {
            @Override
            public long getCount(@Nonnull TaskState taskState) {
                return taskState == TaskState.OPEN ? open : (taskState == TaskState.RESOLVED ? resolved : 0);
            }
        };
    }
}
