public async Task Should_replace_context_app_with_grain_result()
        {
            var result = A.Fake <IAppEntity>();

            var command = CreateCommand(new MyCommand());
            var context = CreateContextForCommand(command);

            context.Complete(result);

            await sut.HandleAsync(context);

            Assert.Same(result, requestContext.App);
        }
        public async Task Create_should_create_domain_object()
        {
            var context = CreateContextForCommand(new CreateApp {
                Name = AppName, AppId = AppId
            });

            await TestCreate(app, async _ =>
            {
                await sut.HandleAsync(context);
            });

            Assert.Equal(AppId, context.Result <EntityCreatedResult <Guid> >().IdOrValue);
        }