7
Phương pháp mở rộng mô phỏng với Moq
Tôi có Giao diện từ trước ... public interface ISomeInterface { void SomeMethod(); } và tôi đã mở rộng intreface này bằng cách sử dụng mixin ... public static class SomeInterfaceExtensions { public static void AnotherMethod(this ISomeInterface someInterface) { // Implementation here } } Tôi có một lớp học gọi …