public void Create_DataCorrect_ItemCreated() { var user = UserFaker.Create(); var accessToken = Rand.RandomString(); var id = ServiceAccessToken.Create(user, accessToken, ServiceType.GitHub); var token = ServiceAccessToken.Find(id); Assert.NotNull(token); }
public static ServiceAccessToken Find(int id) { return(ServiceAccessToken.Find(id)); }
public static ServiceAccessToken Find(UserModel user, ServiceType serviceType) { return(ServiceAccessToken.Find(user, serviceType)); }