public AccountHistoryRepositoryTests() { _configurationHelper = new ConfigurationHelper(); _serviceProviderHelper = new ServiceProviderHelper(_configurationHelper.Configuration); _databaseHelper = new DatabaseHelper(_configurationHelper.Configuration); _identityHelper = new IdentityHelper("AccountHistoryRepoTest"); _identityHelper.AddTestUser(_databaseHelper.Context); }
public AttachmentRepositoryTests() { _configurationHelper = new ConfigurationHelper(); _serviceProviderHelper = new ServiceProviderHelper(_configurationHelper.Configuration); _databaseHelper = new DatabaseHelper(_configurationHelper.Configuration); _identityHelper = new IdentityHelper("AttachmentRepoTest"); _identityHelper.AddTestUser(_databaseHelper.Context); _testProfilePicture = new Attachment { UserId = _identityHelper.TestUser.Id, Type = AttachmentType.ProfilePicture.ToString(), Filename = "test", Extension = ".jpg", Data = new byte[] { 0x00, 0x01, 0x0f, 0x69, 0xaa, 0xf0, 0xff } }; }