Esempio n. 1
0
        public static void Log(string request, string exception)
        {
            RepositoryProvider repositryProvider = RepositoryProvider.Create();

            repositryProvider.Get <ErrorMessageRepository>().Insert(new ErrorMessage()
            {
                ErrorMessageId = Guid.NewGuid(),
                EventDate      = DateTime.UtcNow,
                Request        = request,
                Exception      = exception
            });
            repositryProvider.Save();
        }
Esempio n. 2
0
 public void Refactor_OK()
 {
     try
     {
         var repository      = RepositoryProvider.Create();
         var groupRepository = repository.Get <GroupRepository>();
         Assert.IsNotNull(groupRepository);
         Assert.IsInstanceOfType(groupRepository, typeof(GroupRepository));
     }
     catch (UnitTestAssertException exception)
     {
         throw;
     }
 }