internal static Inbox Create(IDataStore dataStore, IApplicationSettings applicationSettings, IApplication application, Random random) { InboxManager manager = new InboxManager(dataStore); Inbox inbox = new Inbox( application.ApplicationId , "TestInbox " + random.Next(1000000, 10000000) , true); BusinessObjectActionReport <DataRepositoryActionStatus> report = manager.Create(inbox); Assert.AreEqual(DataRepositoryActionStatus.Success, report.Status); Assert.Greater(inbox.InboxId, 0); Inbox dsInbox = manager.GetInbox(inbox.InboxId); Assert.IsNotNull(dsInbox); return(dsInbox); }