-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
namespace Bootsharp.Common.Test; | ||
global using static Bootsharp.Common.Test.Mocks; | ||
|
||
public interface IBackend; | ||
public interface IFrontend; | ||
public class Backend : IBackend; | ||
public class Frontend : IFrontend; | ||
namespace Bootsharp.Common.Test; | ||
|
||
public static class Mocks | ||
{ | ||
public interface IBackend; | ||
public interface IFrontend; | ||
public class Backend : IBackend; | ||
public class Frontend : IFrontend; | ||
} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
namespace Bootsharp.Inject.Test; | ||
global using static Bootsharp.Inject.Test.Mocks; | ||
|
||
public interface IBackend; | ||
public interface IFrontend; | ||
public class Backend : IBackend; | ||
public class Frontend : IFrontend; | ||
public class JSFrontend : IFrontend; | ||
namespace Bootsharp.Inject.Test; | ||
|
||
public class JSBackend | ||
public static class Mocks | ||
{ | ||
public static IBackend Handler { get; private set; } | ||
public interface IBackend; | ||
public interface IFrontend; | ||
public class Backend : IBackend; | ||
public class Frontend : IFrontend; | ||
public class JSFrontend : IFrontend; | ||
|
||
public JSBackend (IBackend handler) | ||
public class JSBackend | ||
{ | ||
Handler = handler; | ||
public static IBackend Handler { get; private set; } | ||
|
||
public JSBackend (IBackend handler) | ||
{ | ||
Handler = handler; | ||
} | ||
} | ||
} |