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(); }
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; } }