- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or foldersinany application - Add a
Run Shell Scriptaction- your default shell should already be selected, otherwise use
/bin/zshfor macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to [host server] # Give it a name | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: | |
| - closed | |
| workflow_dispatch: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Moq; | |
| using NETCore3WebApp.Business; | |
| using NETCore3WebApp.Infrastructure.DB; | |
| using NUnit.Framework; | |
| using System.Collections.Generic; | |
| namespace NETCore3WebApp.Test.Business.Entity | |
| { | |
| public class MyEntityManagerTest | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.EntityFrameworkCore; | |
| using Moq; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace NETCore3WebApp.Test.Business { | |
| public static class DbContextMock { | |
| public static DbSet <T> GetQueryableMockDbSet <T> (List <T> sourceList) where T: class | |
| { | |
| var queryable = sourceList.AsQueryable(); |