Exemple #1
0
        private async Task <SongForEditContract> Update(SongForEditContract contract)
        {
            return(await context.RunTestAsync(async repository => {
                var queries = Queries(repository);

                var updated = await queries.UpdateBasicProperties(contract);

                return queries.GetSongForEdit(updated.Id);
            }));
        }
Exemple #2
0
        private Task <ReleaseEventForEditContract> Update(ReleaseEventForEditContract contract)
        {
            return(context.RunTestAsync(async repository => {
                var queries = new EventQueries(repository, entryLinkFactory, userContext, imageStore, userIconFactory, enumTranslations, mailer,
                                               new FollowedArtistNotifier(new FakeEntryLinkFactory(), new FakeUserMessageMailer(), new EnumTranslations(), new EntrySubTypeNameFactory()), imageStore);

                var updated = await queries.Update(contract, null);

                return queries.GetEventForEdit(updated.Id);
            }));
        }