Exemplo n.º 1
0
 public static ActivityTemplateDO GetTestActivityTemplateDO()
 {
     return(new ActivityTemplateDO("Test", "test", "v1", "test", FixtureData.GetTestGuidById(1))
     {
         Id = FixtureData.GetTestGuidById(1),
         Categories = new List <ActivityCategorySetDO>()
     });
 }
Exemplo n.º 2
0
 public static TerminalDO TerminalSeven()
 {
     return(new TerminalDO
     {
         Id = FixtureData.GetTestGuidById(1),
         Name = "terminalDocuSign",
         Label = "DocuSign",
         Endpoint = "localhost",
         TerminalStatus = TerminalStatus.Active,
         Version = "1",
         Secret = Guid.NewGuid().ToString(),
         OperationalState = OperationalState.Active,
         ParticipationState = ParticipationState.Approved
     });
 }
Exemplo n.º 3
0
 public static void AddAuthorizationToken(Fr8AccountDO user, string externalAccountId)
 {
     using (var uow = ObjectFactory.GetInstance <IUnitOfWork>())
     {
         var tokenDO = new AuthorizationTokenDO()
         {
             UserID     = user.Id,
             TerminalID = FixtureData.GetTestGuidById(1),
             AuthorizationTokenState = AuthorizationTokenState.Active,
             ExpiresAt         = null,
             Token             = @"{""Email"":""64684b41-bdfd-4121-8f81-c825a6a03582"",""ApiPassword"":""HyCXOBeGl/Ted9zcMqd7YEKoN0Q=""}",
             ExternalAccountId = externalAccountId
         };
         uow.AuthorizationTokenRepository.Add(tokenDO);
         uow.SaveChanges();
     }
 }
Exemplo n.º 4
0
 public static void AddTestActivityTemplate()
 {
     using (var uow = ObjectFactory.GetInstance <IUnitOfWork>())
     {
         uow.TerminalRepository.Add(new TerminalDO
         {
             Id                 = FixtureData.GetTestGuidById(1),
             Name               = "testTerminal",
             Label              = "test",
             Version            = "v1",
             Secret             = "test",
             TerminalStatus     = 1,
             ParticipationState = ParticipationState.Approved,
             OperationalState   = OperationalState.Active,
             Endpoint           = "http://localhost:11111"
         });
         uow.SaveChanges();
         uow.ActivityTemplateRepository.Add(GetTestActivityTemplateDO());
         uow.SaveChanges();
     }
 }