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 Create(UserModel user, string accessToken, ServiceType serviceType) { return(Find(ServiceAccessToken.Create(user, accessToken, serviceType))); }