public void CanHandle_OtherKindOfClient_False() { var client = Mock.Of <IClient>(); var query = Mock.Of <IQuery>(); var factory = new SqlCommandFactory(); Assert.That(factory.CanHandle(client), Is.False); }
public void CanHandle_SqlClient_True() { var client = new SqlClient(new Uri("https://localhost:8081"), base64AuthKey, "db", "FoF"); var query = Mock.Of <IQuery>(); var factory = new SqlCommandFactory(); Assert.That(factory.CanHandle(client), Is.True); }