public AtsDataStoreCreatorTests() { _connection = new Mock<AtsConnection>(); _connection.Setup( s => s.ExecuteRequest( It.IsAny<TableRequest<bool>>(), It.IsAny<ILogger>()) ).Returns(true); _connection.Setup( s => s.ExecuteRequestAsync( It.IsAny<TableRequest<bool>>(), It.IsAny<ILogger>(), It.IsAny<CancellationToken>()) ).Returns(Task.FromResult(true)); _creator = new AtsDataStoreCreator(_connection.Object); _model = new Model(); var builder = new ModelBuilder(_model); builder.Entity("Test1"); builder.Entity("Test2"); builder.Entity("Test3"); }
public AtsDataStoreCreatorTests() { _connection = new Mock <AtsConnection>(); _connection.Setup( s => s.ExecuteRequest( It.IsAny <TableRequest <bool> >(), It.IsAny <ILogger>()) ).Returns(true); _connection.Setup( s => s.ExecuteRequestAsync( It.IsAny <TableRequest <bool> >(), It.IsAny <ILogger>(), It.IsAny <CancellationToken>()) ).Returns(Task.FromResult(true)); _creator = new AtsDataStoreCreator(_connection.Object); _model = new Model(); var builder = new BasicModelBuilder(_model); builder.Entity("Test1"); builder.Entity("Test2"); builder.Entity("Test3"); }